summaryrefslogtreecommitdiff
path: root/src/resources/image.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-08 01:04:33 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-08 01:04:33 +0300
commit410dd6c3d845cc0e19fd678090d95669bdeb5885 (patch)
treed9f0003f0f68212d1c99890f603c3d280b24669b /src/resources/image.cpp
parentdce5065a2df5f6ac0057702f704b6ab4f16ce8f8 (diff)
downloadmanaverse-410dd6c3d845cc0e19fd678090d95669bdeb5885.tar.gz
manaverse-410dd6c3d845cc0e19fd678090d95669bdeb5885.tar.bz2
manaverse-410dd6c3d845cc0e19fd678090d95669bdeb5885.tar.xz
manaverse-410dd6c3d845cc0e19fd678090d95669bdeb5885.zip
Add Modern OpenGL render type.
Now it using normal OpenGL renderer.
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r--src/resources/image.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp
index d2a1eb2dd..d9d2a8a01 100644
--- a/src/resources/image.cpp
+++ b/src/resources/image.cpp
@@ -439,8 +439,10 @@ Image *Image::getSubImage(const int x, const int y,
// Create a new clipped sub-image
#ifdef USE_OPENGL
const RenderType mode = OpenGLImageHelper::mUseOpenGL;
- if (mode == RENDER_NORMAL_OPENGL || mode == RENDER_SAFE_OPENGL
- || mode == RENDER_GLES_OPENGL)
+ if (mode == RENDER_NORMAL_OPENGL
+ || mode == RENDER_SAFE_OPENGL
+ || mode == RENDER_GLES_OPENGL
+ || mode == RENDER_MODERN_OPENGL)
{
return new SubImage(this, mGLImage, x, y, width, height,
mTexWidth, mTexHeight);