mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 15:32:33 +00:00
Don't override custom shaders with model lighting shader
This commit is contained in:
parent
c1cf41fb0c
commit
92ebbdfc10
1 changed files with 2 additions and 1 deletions
|
@ -1107,8 +1107,9 @@ EXPORT void HWRAPI(SetShader) (int shader)
|
|||
if (gl_allowshaders)
|
||||
{
|
||||
// If using model lighting, set the appropriate shader.
|
||||
// However don't override a custom shader.
|
||||
// Should use an enum or something...
|
||||
if (shader == 4 && model_lighting)
|
||||
if (shader == 4 && model_lighting && !gl_shaderprograms[4].custom)
|
||||
shader = 8;
|
||||
if ((GLuint)shader != gl_currentshaderprogram)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue