# HG changeset patch # User Sam Lantinga # Date 1187148854 0 # Node ID 5523312f311efbef75d6898f6c29c36eb738caef # Parent 313112f9ac5c0041b16487d3ca9e1573a33b8c93 Date: Wed, 15 Aug 2007 01:08:38 +0200 From: Couriersud Subject: Some SDL1.3 patches LoadLibrary will call X11_GL_Initialize. If LoadLibrary is called before a window is created, it will crash since structures are not properly set up. diff -r 313112f9ac5c -r 5523312f311e src/video/x11/SDL_x11opengl.c --- a/src/video/x11/SDL_x11opengl.c Wed Aug 15 03:20:55 2007 +0000 +++ b/src/video/x11/SDL_x11opengl.c Wed Aug 15 03:34:14 2007 +0000 @@ -90,6 +90,9 @@ return -1; } + // LoadLibrary may be called before WindowCreate! + X11_GL_Initialize(_this); + /* Load new function pointers */ _this->gl_data->glXGetProcAddress = (void *(*)(const GLubyte *)) GL_LoadFunction(handle,