mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
osx: Fix a warning on Snow Leopard
Apple where nice and changed API between releases. This patch checks the version of the compilation environment and tries to use the right parameter type. http://bugzilla.openedhand.com/show_bug.cgi?id=1866
This commit is contained in:
parent
58f1dfcf35
commit
031d4d6203
@ -69,7 +69,11 @@ clutter_backend_osx_post_parse (ClutterBackend *backend,
|
||||
shareContext: nil];
|
||||
|
||||
/* Enable vblank sync - http://developer.apple.com/qa/qa2007/qa1521.html */
|
||||
#ifdef MAC_OS_X_VERSION_10_5
|
||||
const int sw = 1;
|
||||
#else
|
||||
const long sw = 1;
|
||||
#endif
|
||||
[self->context setValues:&sw forParameter: NSOpenGLCPSwapInterval];
|
||||
|
||||
/* FIXME: move the debugging bits to cogl */
|
||||
|
Loading…
Reference in New Issue
Block a user