fix ubo for intel cards (also amd?)

This commit is contained in:
degasus 2012-12-28 17:06:08 +01:00
parent 48ede4dd30
commit d9f3fc4495
1 changed files with 2 additions and 2 deletions

View File

@ -67,10 +67,10 @@ void ProgramShaderCache::SetProgramVariables(PCacheEntry &entry)
// Driver Bug? Nvidia GTX 570, 290.xx Driver, Linux x64
if (g_ActiveConfig.backend_info.bSupportsGLSLUBO)
{
glUniformBlockBinding(entry.prog_id, 0, 1);
glUniformBlockBinding(entry.prog_id, glGetUniformBlockIndex(entry.prog_id, "PSBlock"), 1);
// Some things have no vertex shader
if (entry.vsid != 0)
glUniformBlockBinding(entry.prog_id, 1, 2);
glUniformBlockBinding(entry.prog_id, glGetUniformBlockIndex(entry.prog_id, "VSBlock"), 2);
}
// We cache our uniform locations for now