Fix Water_Ripple uniform
This commit is contained in:
parent
0c8d2efce0
commit
ec53fd6511
1 changed files with 8 additions and 1 deletions
|
|
@ -1945,7 +1945,14 @@ static void Shader_SetUniforms(FSurfaceInfo *Surface, GLRGBAFloat *poly, GLRGBAF
|
||||||
|
|
||||||
UNIFORM_2(shader->uniforms[gluniform_scr_resolution], (GLfloat)vid.width, (GLfloat)vid.height, pglUniform2f);
|
UNIFORM_2(shader->uniforms[gluniform_scr_resolution], (GLfloat)vid.width, (GLfloat)vid.height, pglUniform2f);
|
||||||
|
|
||||||
UNIFORM_1(shader->uniforms[gluniform_water_ripple], !!(Surface && (Surface->PolyFlags & PF_Ripple)), pglUniform1f);
|
if (Surface)
|
||||||
|
{
|
||||||
|
UNIFORM_1(shader->uniforms[gluniform_water_ripple], (Surface->PolyFlags & PF_Ripple), pglUniform1f);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
UNIFORM_1(shader->uniforms[gluniform_water_ripple], 0, pglUniform1f);
|
||||||
|
}
|
||||||
|
|
||||||
#undef UNIFORM_1
|
#undef UNIFORM_1
|
||||||
#undef UNIFORM_2
|
#undef UNIFORM_2
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue