Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11opengl.c @ 2243:5523312f311e
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.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 15 Aug 2007 03:34:14 +0000 |
parents | 114a541cfae2 |
children | 5234868559fa |
comparison
equal
deleted
inserted
replaced
2242:313112f9ac5c | 2243:5523312f311e |
---|---|
88 handle = GL_LoadObject(path); | 88 handle = GL_LoadObject(path); |
89 if (!handle) { | 89 if (!handle) { |
90 return -1; | 90 return -1; |
91 } | 91 } |
92 | 92 |
93 // LoadLibrary may be called before WindowCreate! | |
94 X11_GL_Initialize(_this); | |
95 | |
93 /* Load new function pointers */ | 96 /* Load new function pointers */ |
94 _this->gl_data->glXGetProcAddress = | 97 _this->gl_data->glXGetProcAddress = |
95 (void *(*)(const GLubyte *)) GL_LoadFunction(handle, | 98 (void *(*)(const GLubyte *)) GL_LoadFunction(handle, |
96 "glXGetProcAddressARB"); | 99 "glXGetProcAddressARB"); |
97 _this->gl_data->glXChooseVisual = | 100 _this->gl_data->glXChooseVisual = |