From 37ea8290db06e8ccd025d80c7cf19bf5bc1fc8fc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 19 Jun 2017 21:37:23 +0300 Subject: Fix resetting draw color in modern and mobile2 renderers. --- src/render/modernopenglgraphics.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/render/modernopenglgraphics.cpp') diff --git a/src/render/modernopenglgraphics.cpp b/src/render/modernopenglgraphics.cpp index cfd83e57f..89ca10fd4 100644 --- a/src/render/modernopenglgraphics.cpp +++ b/src/render/modernopenglgraphics.cpp @@ -200,6 +200,11 @@ void ModernOpenGLGraphics::postInit() restrict2 mglUniform2f(mScreenUniform, static_cast(mWidth) / 2.0f, static_cast(mHeight) / 2.0f); + mglUniform4f(mSimpleColorUniform, + 0.0F, + 0.0F, + 0.0F, + 0.0F); } void ModernOpenGLGraphics::screenResized() restrict2 @@ -208,6 +213,7 @@ void ModernOpenGLGraphics::screenResized() restrict2 mVboBinded = 0U; mEboBinded = 0U; mAttributesBinded = 0U; + mColor = Color(0, 0, 0, 0); postInit(); } -- cgit v1.2.3-70-g09d2