Commit 9f25d031 authored by hybrid's avatar hybrid

Moved FBO check method for systems without this extension.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1709 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 915bb23f
...@@ -618,12 +618,12 @@ void COpenGLFBODepthTexture::attach(ITexture* renderTex) ...@@ -618,12 +618,12 @@ void COpenGLFBODepthTexture::attach(ITexture* renderTex)
GL_RENDERBUFFER_EXT, GL_RENDERBUFFER_EXT,
DepthRenderBuffer); DepthRenderBuffer);
} }
#endif
rtt->DepthTexture=this;
renderTex->grab();
// check the status // check the status
if (!checkFBOStatus(Driver)) if (!checkFBOStatus(Driver))
os::Printer::log("FBO incomplete"); os::Printer::log("FBO incomplete");
#endif
rtt->DepthTexture=this;
renderTex->grab();
rtt->unbindRTT(); rtt->unbindRTT();
} }
......
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