fix issue with Intel OpenGL 3.x driver under Ubuntu, render to texture cannot handle glDrawBuffer(GL_NONE)
This commit is contained in:
@@ -66,7 +66,9 @@ bool GLRenderToTexture::enable()
|
||||
}
|
||||
case RENDERTEXTURE_DEPTH:
|
||||
{
|
||||
glDrawBuffer(GL_NONE);
|
||||
GLenum drawBuffers[2] = {GL_DEPTH_ATTACHMENT,0};
|
||||
glDrawBuffers(1, drawBuffers);
|
||||
//glDrawBuffer(GL_NONE);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user