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

Commit

Permalink
Corrected call to glXMakeCurrent() when setting a NULL context.
Browse files Browse the repository at this point in the history
Fixes Bugzilla #1675.
  • Loading branch information
urkle committed Jan 1, 2013
1 parent fa8d780 commit 6498f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11opengl.c
Expand Up @@ -628,7 +628,7 @@ X11_GL_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context)
{
Display *display = ((SDL_VideoData *) _this->driverdata)->display;
Window drawable =
(window ? ((SDL_WindowData *) window->driverdata)->xwindow : None);
(context ? ((SDL_WindowData *) window->driverdata)->xwindow : None);
GLXContext glx_context = (GLXContext) context;
int status;

Expand Down

0 comments on commit 6498f1a

Please sign in to comment.