Some shader programs don't come with Vertex shaders attached, don't try to bind a Vertex Uniform block then.

This commit is contained in:
Ryan Houdek 2011-12-17 01:17:11 -06:00 committed by Sonicadvance1
parent f8d0c28e53
commit 9c09e1973a
1 changed files with 2 additions and 1 deletions

View File

@ -104,6 +104,7 @@ namespace OGL
if (g_ActiveConfig.backend_info.bSupportsGLSLUBO)
{
glUniformBlockBinding( entry.program.glprogid, 0, 1 );
if(uid.uid.vsid != 0) // Some things have no vertex shader
glUniformBlockBinding( entry.program.glprogid, 1, 2 );
}