From b063cfc5099484df118edbfd9d2e92d71530ae05 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Tue, 24 Jun 2014 20:24:31 -0700 Subject: [PATCH] more workaround for glDrawBuffers issue --- btgui/OpenGLWindow/GLRenderToTexture.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/btgui/OpenGLWindow/GLRenderToTexture.cpp b/btgui/OpenGLWindow/GLRenderToTexture.cpp index aee7e7b40..99929956c 100644 --- a/btgui/OpenGLWindow/GLRenderToTexture.cpp +++ b/btgui/OpenGLWindow/GLRenderToTexture.cpp @@ -66,9 +66,9 @@ bool GLRenderToTexture::enable() } case RENDERTEXTURE_DEPTH: { - GLenum drawBuffers[2] = {GL_DEPTH_ATTACHMENT,0}; - glDrawBuffers(1, drawBuffers); - //glDrawBuffer(GL_NONE); + GLenum drawBuffers[2] = { GL_NONE, 0 };// GL_DEPTH_ATTACHMENT, 0}; + glDrawBuffers(1, drawBuffers); +// glDrawBuffer(GL_NONE); break; } default: