From 5017a192eb6ba3717e416730e1ae124e59411f9f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 19 May 2016 12:22:39 +0200 Subject: [PATCH] - fixed: The texture matrix was not reset after drawing the texture pass for multipass textured dynamic lights. --- src/gl/scene/gl_flats.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gl/scene/gl_flats.cpp b/src/gl/scene/gl_flats.cpp index 5164e0676..d7c47c618 100644 --- a/src/gl/scene/gl_flats.cpp +++ b/src/gl/scene/gl_flats.cpp @@ -455,6 +455,7 @@ void GLFlat::Draw(int pass, bool trans) // trans only has meaning for GLPASS_LIG gl_RenderState.SetMaterial(gltexture, CLAMP_NONE, 0, -1, false); gl_SetPlaneTextureRotation(&plane, gltexture); DrawSubsectors(pass, false, false); + gl_RenderState.EnableTextureMatrix(false); break; } }