mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
Fix lightmap texture not getting bound by the OpenGL backend
This commit is contained in:
parent
63ecb36889
commit
8a2f445dd6
1 changed files with 3 additions and 3 deletions
|
@ -620,14 +620,14 @@ bool FShader::Load(const char * name, const char * vert_prog_lump, const char *
|
|||
char stringbuf[20];
|
||||
mysnprintf(stringbuf, 20, "texture%d", i);
|
||||
int tempindex = glGetUniformLocation(hShader, stringbuf);
|
||||
if (tempindex > 0) glUniform1i(tempindex, i - 1);
|
||||
if (tempindex != -1) glUniform1i(tempindex, i - 1);
|
||||
}
|
||||
|
||||
int shadowmapindex = glGetUniformLocation(hShader, "ShadowMap");
|
||||
if (shadowmapindex > 0) glUniform1i(shadowmapindex, 16);
|
||||
if (shadowmapindex != -1) glUniform1i(shadowmapindex, 16);
|
||||
|
||||
int lightmapindex = glGetUniformLocation(hShader, "LightMap");
|
||||
if (lightmapindex > 0) glUniform1i(lightmapindex, 17);
|
||||
if (lightmapindex != -1) glUniform1i(lightmapindex, 17);
|
||||
|
||||
glUseProgram(0);
|
||||
return linked;
|
||||
|
|
Loading…
Reference in a new issue