From af7b843690087326b5229426bd2d87e8806aac8b Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 30 Apr 2026 12:59:39 -0400 Subject: [PATCH] Fix models binding the lighttable texture to the the palette lookup texture This fixes stuff becoming blue when models are on --- src/hardware/r_opengl/r_opengl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index 35aea7d9c..9a32989a1 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -2096,7 +2096,7 @@ static boolean Shader_CompileProgram(gl_shader_t *shader, GLint i) // restore gl shader state pglUseProgram(gl_shaderstate.program); - #undef UNIFORM_1 +#undef UNIFORM_1 return true; } @@ -2734,7 +2734,7 @@ static void DrawModelEx(model_t *model, INT32 frameIndex, float duration, float if (Surface->LightTableId && Surface->LightTableId != lt_downloaded) { - pglActiveTexture(GL_TEXTURE2); + pglActiveTexture(GL_TEXTURE3); pglBindTexture(GL_TEXTURE_2D, Surface->LightTableId); pglActiveTexture(GL_TEXTURE0); lt_downloaded = Surface->LightTableId;