From 2813a22740342c768e3d76e849b7a19944eea9d6 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 19 Jun 2016 11:19:31 +0300 Subject: [PATCH] Fixed inconsistent state of lights in compatibility renderer --- src/gl/compatibility/gl_20.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/compatibility/gl_20.cpp b/src/gl/compatibility/gl_20.cpp index 2224dd9f44..957a73f4ab 100644 --- a/src/gl/compatibility/gl_20.cpp +++ b/src/gl/compatibility/gl_20.cpp @@ -456,7 +456,7 @@ bool gl_SetupLightTexture() { if (GLRenderer->gllight == nullptr) return false; FMaterial * pat = FMaterial::ValidateTexture(GLRenderer->gllight, false); - pat->Bind(CLAMP_XY_NOMIP, 0); + gl_RenderState.SetMaterial(pat, CLAMP_XY_NOMIP, 0, -1, false); return true; }