mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-14 17:59:38 -06:00
workaround for glGetUniformLocation in efb2ram
This commit is contained in:
@ -96,8 +96,9 @@ void ProgramShaderCache::SetProgramVariables(PCacheEntry &entry)
|
||||
// (Sonicadvance): For some reason this fails on my hardware
|
||||
//glGetUniformIndices(entry.prog_id, NUM_UNIFORMS, UniformNames, entry.UniformLocations);
|
||||
// Got to do it this crappy way.
|
||||
entry.UniformLocations[0] = glGetUniformLocation(entry.prog_id, UniformNames[0]);
|
||||
if (!g_ActiveConfig.backend_info.bSupportsGLSLUBO)
|
||||
for (int a = 0; a < NUM_UNIFORMS; ++a)
|
||||
for (int a = 1; a < NUM_UNIFORMS; ++a)
|
||||
entry.UniformLocations[a] = glGetUniformLocation(entry.prog_id, UniformNames[a]);
|
||||
|
||||
// Bind Texture Sampler
|
||||
|
Reference in New Issue
Block a user