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. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402605
This commit is contained in:
parent
bb3b316228
commit
6113055717
1 changed files with 3 additions and 0 deletions
|
@ -90,6 +90,9 @@ X11_GL_LoadLibrary(_THIS, const char *path)
|
|||
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue