diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-12 21:04:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-12 21:04:06 +0300 |
commit | 79a05c5d68c2d24d0b0e1b47c5eaa88f47940736 (patch) | |
tree | 58732158fbb327d1d9cfe4646b32b54a62ac89cd /src | |
parent | ea4af93d512a993e1a7c2dc1b90a1cddad5a4ab1 (diff) | |
download | mv-79a05c5d68c2d24d0b0e1b47c5eaa88f47940736.tar.gz mv-79a05c5d68c2d24d0b0e1b47c5eaa88f47940736.tar.bz2 mv-79a05c5d68c2d24d0b0e1b47c5eaa88f47940736.tar.xz mv-79a05c5d68c2d24d0b0e1b47c5eaa88f47940736.zip |
In modernopengl enable scissor.
Diffstat (limited to 'src')
-rw-r--r-- | src/render/modernopenglgraphics.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/render/modernopenglgraphics.cpp b/src/render/modernopenglgraphics.cpp index bf79e667d..1d5ef1593 100644 --- a/src/render/modernopenglgraphics.cpp +++ b/src/render/modernopenglgraphics.cpp @@ -749,15 +749,12 @@ SDL_Surface* ModernOpenGLGraphics::getScreenshot() bool ModernOpenGLGraphics::pushClipArea(const Rect &area) { const bool result = Graphics::pushClipArea(area); - const ClipRect &clipArea = mClipStack.top(); -/* glScissor(clipArea.x * mScale, (mRect.h - clipArea.y - clipArea.height) * mScale, clipArea.width * mScale, clipArea.height * mScale); -*/ return result; } @@ -770,12 +767,10 @@ void ModernOpenGLGraphics::popClipArea() return; const ClipRect &clipArea = mClipStack.top(); -/* glScissor(clipArea.x * mScale, (mRect.h - clipArea.y - clipArea.height) * mScale, clipArea.width * mScale, clipArea.height * mScale); -*/ } void ModernOpenGLGraphics::drawPoint(int x, int y) |