mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Add a define back so we work without GLEW 1.6, Also I missed a line when I was fixing binding sampler locations last night when I was tired.
This commit is contained in:

committed by
Sonicadvance1

parent
1aad2e9e56
commit
7cb3d86e31
@ -121,4 +121,9 @@ extern CGcontext g_cgcontext;
|
|||||||
extern CGprofile g_cgvProf, g_cgfProf;
|
extern CGprofile g_cgvProf, g_cgfProf;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Isn't defined if we aren't using GLEW 1.6
|
||||||
|
#ifndef GL_ONE_MINUS_SRC1_ALPHA
|
||||||
|
#define GL_ONE_MINUS_SRC1_ALPHA 0x88FB
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // _GLINIT_H_
|
#endif // _GLINIT_H_
|
||||||
|
@ -116,12 +116,13 @@ namespace OGL
|
|||||||
//glGetUniformIndices(entry.program.glprogid, NUM_UNIFORMS, UniformNames, entry.program.UniformLocations);
|
//glGetUniformIndices(entry.program.glprogid, NUM_UNIFORMS, UniformNames, entry.program.UniformLocations);
|
||||||
//Got to do it this crappy way.
|
//Got to do it this crappy way.
|
||||||
if (!g_ActiveConfig.backend_info.bSupportsGLSLUBO)
|
if (!g_ActiveConfig.backend_info.bSupportsGLSLUBO)
|
||||||
for(int a = 0; a < NUM_UNIFORMS; ++a)
|
for(int a = 8; a < NUM_UNIFORMS; ++a)
|
||||||
entry.program.UniformLocations[a] = glGetUniformLocation(entry.program.glprogid, UniformNames[a]);
|
entry.program.UniformLocations[a] = glGetUniformLocation(entry.program.glprogid, UniformNames[a]);
|
||||||
if (!g_ActiveConfig.backend_info.bSupportsGLSLBinding)
|
if (!g_ActiveConfig.backend_info.bSupportsGLSLBinding)
|
||||||
for(int a = 0; a < 8; ++a)
|
for(int a = 0; a < 8; ++a)
|
||||||
{
|
{
|
||||||
// Still need to get sampler locations since we aren't binding them statically in the shaders
|
// Still need to get sampler locations since we aren't binding them statically in the shaders
|
||||||
|
entry.program.UniformLocations[a] = glGetUniformLocation(entry.program.glprogid, UniformNames[a]);
|
||||||
if(entry.program.UniformLocations[a] != -1)
|
if(entry.program.UniformLocations[a] != -1)
|
||||||
glUniform1i(entry.program.UniformLocations[a], a);
|
glUniform1i(entry.program.UniformLocations[a], a);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user