diff --git a/btgui/OpenGLWindow/GLRenderToTexture.cpp b/btgui/OpenGLWindow/GLRenderToTexture.cpp index 99929956c..04a028ea8 100644 --- a/btgui/OpenGLWindow/GLRenderToTexture.cpp +++ b/btgui/OpenGLWindow/GLRenderToTexture.cpp @@ -66,7 +66,7 @@ bool GLRenderToTexture::enable() } case RENDERTEXTURE_DEPTH: { - GLenum drawBuffers[2] = { GL_NONE, 0 };// GL_DEPTH_ATTACHMENT, 0}; + GLenum drawBuffers[2] = { GL_COLOR_ATTACHMENT0, 0 };// GL_DEPTH_ATTACHMENT, 0}; glDrawBuffers(1, drawBuffers); // glDrawBuffer(GL_NONE); break;