diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-29 23:40:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-29 23:40:41 +0300 |
commit | 1feb7f7edc5f8f383e594b256ef4cab0fae75b99 (patch) | |
tree | 68fe26fdd1ef25645deef894c296b6fbc80b0e13 /src/normalopenglgraphics.cpp | |
parent | 41044107cc0a17125ebd806c9934b6eb636dafe6 (diff) | |
download | manaverse-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.gz manaverse-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.bz2 manaverse-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.xz manaverse-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.zip |
Add const to more classes.
Diffstat (limited to 'src/normalopenglgraphics.cpp')
-rw-r--r-- | src/normalopenglgraphics.cpp | 3 |
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); |