diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-08 01:04:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-08 01:04:33 +0300 |
commit | 410dd6c3d845cc0e19fd678090d95669bdeb5885 (patch) | |
tree | d9f0003f0f68212d1c99890f603c3d280b24669b /src/resources/map | |
parent | dce5065a2df5f6ac0057702f704b6ab4f16ce8f8 (diff) | |
download | plus-410dd6c3d845cc0e19fd678090d95669bdeb5885.tar.gz plus-410dd6c3d845cc0e19fd678090d95669bdeb5885.tar.bz2 plus-410dd6c3d845cc0e19fd678090d95669bdeb5885.tar.xz plus-410dd6c3d845cc0e19fd678090d95669bdeb5885.zip |
Add Modern OpenGL render type.
Now it using normal OpenGL renderer.
Diffstat (limited to 'src/resources/map')
-rw-r--r-- | src/resources/map/map.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp index 7ba798319..279262124 100644 --- a/src/resources/map/map.cpp +++ b/src/resources/map/map.cpp @@ -352,7 +352,9 @@ void Map::draw(Graphics *const graphics, int scrollX, int scrollY) #ifdef USE_OPENGL int updateFlag = 0; - if (mOpenGL == RENDER_NORMAL_OPENGL || mOpenGL == RENDER_GLES_OPENGL) + if (mOpenGL == RENDER_NORMAL_OPENGL + || mOpenGL == RENDER_GLES_OPENGL + || mOpenGL == RENDER_MODERN_OPENGL) { if (mLastX != startX || mLastY != startY || mLastScrollX != scrollX || mLastScrollY != scrollY) @@ -411,7 +413,8 @@ void Map::draw(Graphics *const graphics, int scrollX, int scrollY) { #ifdef USE_OPENGL if (mOpenGL == RENDER_NORMAL_OPENGL - || mOpenGL == RENDER_GLES_OPENGL) + || mOpenGL == RENDER_GLES_OPENGL + || mOpenGL == RENDER_MODERN_OPENGL) { if (updateFlag) { |