summaryrefslogtreecommitdiff
path: root/src/render/modernopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-19 21:37:23 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-19 21:37:23 +0300
commit37ea8290db06e8ccd025d80c7cf19bf5bc1fc8fc (patch)
tree9c8b66a4036e5903f7fe609dd4d079807febc7fe /src/render/modernopenglgraphics.cpp
parent64192ec89b46f7c34aaaae493e48352c3cbbf03f (diff)
downloadmanaverse-37ea8290db06e8ccd025d80c7cf19bf5bc1fc8fc.tar.gz
manaverse-37ea8290db06e8ccd025d80c7cf19bf5bc1fc8fc.tar.bz2
manaverse-37ea8290db06e8ccd025d80c7cf19bf5bc1fc8fc.tar.xz
manaverse-37ea8290db06e8ccd025d80c7cf19bf5bc1fc8fc.zip
Fix resetting draw color in modern and mobile2 renderers.
Diffstat (limited to 'src/render/modernopenglgraphics.cpp')
-rw-r--r--src/render/modernopenglgraphics.cpp6
1 files changed, 6 insertions, 0 deletions
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<float>(mWidth) / 2.0f,
static_cast<float>(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();
}