Commit fade354b authored by hybrid's avatar hybrid

Fix compilation without fbos.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3559 dfc29bdd-3216-0410-991c-e03cc46cb475
parent c7d6ea0e
...@@ -3825,6 +3825,7 @@ bool COpenGLDriver::setRenderTarget(video::ITexture* texture, bool clearBackBuff ...@@ -3825,6 +3825,7 @@ bool COpenGLDriver::setRenderTarget(video::ITexture* texture, bool clearBackBuff
return false; return false;
} }
#if defined(GL_EXT_framebuffer_object)
if (CurrentTarget==ERT_MULTI_RENDER_TEXTURES) if (CurrentTarget==ERT_MULTI_RENDER_TEXTURES)
{ {
for (u32 i=0; i<MRTargets.size(); ++i) for (u32 i=0; i<MRTargets.size(); ++i)
...@@ -3838,6 +3839,7 @@ bool COpenGLDriver::setRenderTarget(video::ITexture* texture, bool clearBackBuff ...@@ -3838,6 +3839,7 @@ bool COpenGLDriver::setRenderTarget(video::ITexture* texture, bool clearBackBuff
} }
MRTargets.clear(); MRTargets.clear();
} }
#endif
// check if we should set the previous RT back // check if we should set the previous RT back
if (RenderTargetTexture != texture) if (RenderTargetTexture != texture)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment