Commit 5094dc90 authored by Robert Menzel's avatar Robert Menzel

added missing binds

parent 146c7748
......@@ -150,6 +150,7 @@ public:
inline bool setDepthRenderBuffer(const ConstSharedRenderBuffer& _renderBuffer)
{
bind();
glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, _renderBuffer->getObjectName() );
#ifdef ACGL_OPENGL_ES
if( _renderBuffer->getInternalFormat() == GL_DEPTH24_STENCIL8_OES ||
......@@ -166,6 +167,7 @@ public:
inline bool setDepthTexture(const ConstSharedTexture& _texture)
{
bind();
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, _texture->getTarget(), _texture->getObjectName(), 0);
#ifdef ACGL_OPENGL_ES
if( _texture->getInternalFormat() == GL_DEPTH24_STENCIL8_OES ||
......
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