From 353a464f5b6dc98f9a9e3627907805f4c70127fd Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 13 Aug 2016 22:15:00 +0200 Subject: [PATCH] - fixed: The 2D texture drawer did not reset the render state's color so any previously set desaturation would persist. --- src/gl/renderer/gl_2ddrawer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gl/renderer/gl_2ddrawer.cpp b/src/gl/renderer/gl_2ddrawer.cpp index 67cb5f2f47..7c896d62c5 100644 --- a/src/gl/renderer/gl_2ddrawer.cpp +++ b/src/gl/renderer/gl_2ddrawer.cpp @@ -399,6 +399,7 @@ void F2DDrawer::Flush() // DrawTypePoly may not use the color part of the vertex buffer because it needs to use gl_SetColor to produce proper output. if (lasttype == DrawTypePoly && dg->mType != DrawTypePoly) { + gl_RenderState.ResetColor(); // this is needed to reset the desaturation. EnableColorArray(true); } else if (lasttype != DrawTypePoly && dg->mType == DrawTypePoly)