From 2bcfc80fe18a7239e2eae5600e4ed118e038da32 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 23 May 2012 00:09:05 +0300 Subject: OpenGL fix for mac version. --- src/graphics.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/graphics.cpp') diff --git a/src/graphics.cpp b/src/graphics.cpp index b8d34aad4..d94963f06 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -34,6 +34,12 @@ #include +#ifdef USE_OPENGL +#ifdef __APPLE__ +#include +#endif +#endif + #include #include "debug.h" @@ -68,7 +74,8 @@ Graphics::Graphics() : mOldPixel(0), mOldAlpha(0), mName("Software"), - mStartFreeMem(0) + mStartFreeMem(0), + mSync(false) { mRect.x = 0; mRect.y = 0; @@ -81,6 +88,11 @@ Graphics::~Graphics() _endDraw(); } +void Graphics::setSync(bool sync) +{ + mSync = sync; +} + void Graphics::setMainFlags(int w, int h, int bpp, bool fs, bool hwaccel, bool resize, bool noFrame) { -- cgit v1.2.3-70-g09d2