Corrected call to glXMakeCurrent() when setting a NULL context.
Fixes Bugzilla #1675.
This commit is contained in:
parent
0c7ab10e80
commit
088842729f
1 changed files with 1 additions and 1 deletions
|
@ -628,7 +628,7 @@ X11_GL_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context)
|
||||||
{
|
{
|
||||||
Display *display = ((SDL_VideoData *) _this->driverdata)->display;
|
Display *display = ((SDL_VideoData *) _this->driverdata)->display;
|
||||||
Window drawable =
|
Window drawable =
|
||||||
(window ? ((SDL_WindowData *) window->driverdata)->xwindow : None);
|
(context ? ((SDL_WindowData *) window->driverdata)->xwindow : None);
|
||||||
GLXContext glx_context = (GLXContext) context;
|
GLXContext glx_context = (GLXContext) context;
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue