From a7f0567d046ab5ccdae405e1f80ebe8e4205978b Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Tue, 24 Jun 2014 20:44:01 -0700 Subject: [PATCH] more workaround for the Intel glDrawBuffers issue --- btgui/OpenGLWindow/GLRenderToTexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;