summaryrefslogtreecommitdiff
path: root/src/normalopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-29 23:40:41 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-29 23:40:41 +0300
commit1feb7f7edc5f8f383e594b256ef4cab0fae75b99 (patch)
tree68fe26fdd1ef25645deef894c296b6fbc80b0e13 /src/normalopenglgraphics.cpp
parent41044107cc0a17125ebd806c9934b6eb636dafe6 (diff)
downloadplus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.gz
plus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.bz2
plus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.xz
plus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.zip
Add const to more classes.
Diffstat (limited to 'src/normalopenglgraphics.cpp')
-rw-r--r--src/normalopenglgraphics.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/normalopenglgraphics.cpp b/src/normalopenglgraphics.cpp
index 32ab1f6c2..5e0fc8a5c 100644
--- a/src/normalopenglgraphics.cpp
+++ b/src/normalopenglgraphics.cpp
@@ -220,7 +220,8 @@ bool NormalOpenGLGraphics::drawImage2(const Image *const image,
srcY += image->mBounds.y;
if (!useColor)
- glColor4f(1.0f, 1.0f, 1.0f, image->mAlpha);
+ glColor4ub(255, 255, 255, image->mAlpha * 255);
+// glColor4f(1.0f, 1.0f, 1.0f, image->mAlpha);
#ifdef DEBUG_BIND_TEXTURE
debugBindTexture(image);