summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-12 21:04:06 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-12 21:04:06 +0300
commit79a05c5d68c2d24d0b0e1b47c5eaa88f47940736 (patch)
tree58732158fbb327d1d9cfe4646b32b54a62ac89cd /src/render
parentea4af93d512a993e1a7c2dc1b90a1cddad5a4ab1 (diff)
downloadplus-79a05c5d68c2d24d0b0e1b47c5eaa88f47940736.tar.gz
plus-79a05c5d68c2d24d0b0e1b47c5eaa88f47940736.tar.bz2
plus-79a05c5d68c2d24d0b0e1b47c5eaa88f47940736.tar.xz
plus-79a05c5d68c2d24d0b0e1b47c5eaa88f47940736.zip
In modernopengl enable scissor.
Diffstat (limited to 'src/render')
-rw-r--r--src/render/modernopenglgraphics.cpp5
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)