Expose depthbuffer texture
This commit is contained in:
parent
c77ffb1882
commit
5694d8b41a
@ -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;
|
||||
|
@ -167,6 +167,7 @@ public:
|
||||
virtual void unbindRTT();
|
||||
|
||||
ITexture* DepthTexture;
|
||||
GLuint DepthBufferTexture;
|
||||
protected:
|
||||
GLuint ColorFrameBuffer;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user