osx: Code style cleanups

This commit is contained in:
Emmanuele Bassi
2011-07-13 19:32:47 +01:00
parent c8e3db105c
commit 18b3da95ef
2 changed files with 38 additions and 15 deletions

View File

@ -153,17 +153,18 @@ clutter_backend_osx_create_context (ClutterBackend *backend,
#endif
backend_osx->pixel_format = [[NSOpenGLPixelFormat alloc] initWithAttributes:attrs];
backend_osx->context = [[NSOpenGLContext alloc]
initWithFormat: backend_osx->pixel_format
shareContext: nil];
backend_osx->context = [[NSOpenGLContext alloc] initWithFormat: backend_osx->pixel_format
shareContext: nil];
/* Enable vblank sync - http://developer.apple.com/qa/qa2007/qa1521.html */
[backend_osx->context setValues:&sw forParameter: NSOpenGLCPSwapInterval];
CLUTTER_NOTE (BACKEND, "Context was created");
}
[backend_osx->context makeCurrentContext];
CLUTTER_NOTE (BACKEND, "Context was created");
CLUTTER_OSX_POOL_RELEASE();
return TRUE;