From 79a05c5d68c2d24d0b0e1b47c5eaa88f47940736 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 12 Jun 2014 21:04:06 +0300 Subject: In modernopengl enable scissor. --- src/render/modernopenglgraphics.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/render') 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) -- cgit v1.2.3-70-g09d2