summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-31 17:13:53 +0100
committerIra Rice <irarice@gmail.com>2009-01-05 20:49:10 -0700
commit4a4b1d993a1c230b0769630949187f299ec6072c (patch)
treef7e48b027dc4f16f09ff95cc998dafe3d681fa2a
parent7238080904f11f2e62e5851a247810971c426ea4 (diff)
downloadmana-4a4b1d993a1c230b0769630949187f299ec6072c.tar.gz
mana-4a4b1d993a1c230b0769630949187f299ec6072c.tar.bz2
mana-4a4b1d993a1c230b0769630949187f299ec6072c.tar.xz
mana-4a4b1d993a1c230b0769630949187f299ec6072c.zip
Made an option around the syncing, but no way to change it for now.
(cherry picked from mainline commit f6f8b2f885145d4cacf7a6c42d88b6a39f71b366) Conflicts: src/openglgraphics.cpp
-rw-r--r--src/openglgraphics.cpp4
1 files changed, 1 insertions, 3 deletions
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);