summaryrefslogtreecommitdiff
path: root/src/render/mobileopengl2graphics.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/mobileopengl2graphics.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/mobileopengl2graphics.cpp')
-rw-r--r--src/render/mobileopengl2graphics.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/render/mobileopengl2graphics.cpp b/src/render/mobileopengl2graphics.cpp
index 6c0762934..620bc923a 100644
--- a/src/render/mobileopengl2graphics.cpp
+++ b/src/render/mobileopengl2graphics.cpp
@@ -198,6 +198,11 @@ void MobileOpenGL2Graphics::postInit() restrict2
mglUniform2f(mTextureSizeUniform,
1.0f,
1.0f);
+ mglUniform4f(mSimpleColorUniform,
+ 0.0F,
+ 0.0F,
+ 0.0F,
+ 0.0F);
mglActiveTexture(GL_TEXTURE0);
}
@@ -207,6 +212,7 @@ void MobileOpenGL2Graphics::screenResized() restrict2
deleteGLObjects();
mVboBinded = 0U;
mAttributesBinded = 0U;
+ mColor = Color(0, 0, 0, 0);
postInit();
}