Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Date: Wed, 15 Aug 2007 01:08:38 +0200
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slouken committed Aug 15, 2007
1 parent 1619646 commit f8a4c59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/x11/SDL_x11opengl.c
Expand Up @@ -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,
Expand Down

0 comments on commit f8a4c59

Please sign in to comment.