Expose depthbuffer texture

This commit is contained in:
Vincent Lejeune 2014-01-27 18:25:34 +01:00
parent c77ffb1882
commit 5694d8b41a
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -167,6 +167,7 @@ public:
virtual void unbindRTT();
ITexture* DepthTexture;
GLuint DepthBufferTexture;
protected:
GLuint ColorFrameBuffer;
};