mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 23:40:26 +00:00
Fixed window creation for DXT display on Mac OS X.
This commit is contained in:
@@ -315,6 +315,12 @@ static void * display_thread_dxt(void *arg)
|
||||
static GLint T0 = 0;
|
||||
static GLint Frames = 0;
|
||||
|
||||
#ifdef HAVE_MACOSX
|
||||
/* Startup function to call when running Cocoa code from a Carbon application. Whatever the fuck that means. */
|
||||
/* Avoids uncaught exception (1002) when creating CGSWindow */
|
||||
NSApplicationLoad();
|
||||
#endif
|
||||
|
||||
/* initialize SDL */
|
||||
if ( SDL_Init( SDL_INIT_VIDEO ) < 0 ) {
|
||||
fprintf( stderr, "Video initialization failed: %s\n",SDL_GetError());
|
||||
|
||||
Reference in New Issue
Block a user