diff --git a/lib/irrlicht/source/Irrlicht/COpenGLTexture.cpp b/lib/irrlicht/source/Irrlicht/COpenGLTexture.cpp index 03cbbdebd..0bc4b612a 100644 --- a/lib/irrlicht/source/Irrlicht/COpenGLTexture.cpp +++ b/lib/irrlicht/source/Irrlicht/COpenGLTexture.cpp @@ -898,6 +898,7 @@ bool COpenGLFBODepthTexture::attach(ITexture* renderTex) return false; } rtt->DepthTexture=this; + rtt->DepthBufferTexture = DepthRenderBuffer; grab(); // grab the depth buffer, not the RTT rtt->unbindRTT(); return true; diff --git a/lib/irrlicht/source/Irrlicht/COpenGLTexture.h b/lib/irrlicht/source/Irrlicht/COpenGLTexture.h index 4f8bb610a..5d3de4e90 100644 --- a/lib/irrlicht/source/Irrlicht/COpenGLTexture.h +++ b/lib/irrlicht/source/Irrlicht/COpenGLTexture.h @@ -167,6 +167,7 @@ public: virtual void unbindRTT(); ITexture* DepthTexture; + GLuint DepthBufferTexture; protected: GLuint ColorFrameBuffer; };