From 4a4b1d993a1c230b0769630949187f299ec6072c Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Wed, 31 Dec 2008 17:13:53 +0100 Subject: Made an option around the syncing, but no way to change it for now. (cherry picked from mainline commit f6f8b2f885145d4cacf7a6c42d88b6a39f71b366) Conflicts: src/openglgraphics.cpp --- src/openglgraphics.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/openglgraphics.cpp') diff --git a/src/openglgraphics.cpp b/src/openglgraphics.cpp index b3a8db4b..24be9438 100644 --- a/src/openglgraphics.cpp +++ b/src/openglgraphics.cpp @@ -78,8 +78,6 @@ bool OpenGLGraphics::setVideoMode(int w, int h, int bpp, bool fs, bool hwaccel) } #ifdef __APPLE__ -// long VBL = 1; -// CGLSetParameter(CGLGetCurrentContext(), kCGLCPSwapInterval, &VBL); if (mSync) { const GLint VBL = 1; CGLSetParameter(CGLGetCurrentContext(), kCGLCPSwapInterval, &VBL); @@ -360,7 +358,7 @@ void OpenGLGraphics::setTexturingAndBlending(bool enable) void OpenGLGraphics::drawRectangle(const gcn::Rectangle& rect, bool filled) { - float offset = filled ? 0 : 0.5f; + const float offset = filled ? 0 : 0.5f; setTexturingAndBlending(false); -- cgit v1.2.3-70-g09d2