mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Don't override custom shaders with model lighting shader
This commit is contained in:
parent
5b8c41fffd
commit
e575676887
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…
Add table
Reference in a new issue