fix issue with Intel OpenGL 3.x driver under Ubuntu, render to texture cannot handle glDrawBuffer(GL_NONE)

This commit is contained in:
Erwin Coumans (Google)
2014-06-24 20:12:05 -07:00
parent 8f94ced88a
commit 4189a9a67f
3 changed files with 4 additions and 7 deletions

View File

@@ -802,11 +802,6 @@ void GLInstancingRenderer::InitShaders()
glLinkProgram(createShadowMapInstancingShader);
glUseProgram(createShadowMapInstancingShader);
createShadow_depthMVP = glGetUniformLocation(createShadowMapInstancingShader, "depthMVP");
if (createShadow_depthMVP==0)
{
printf("Issue with createShadowMapInstancingFragmentShader (createShadow_depthMVP==0), disabling shadow maps\n");
useShadowMap=false;
}
glUseProgram(0);