Fix OpenGL rendering on G45 systems.

This commit is contained in:
gb 2010-04-20 07:51:23 +00:00
parent d1709fef62
commit fa11094655

View file

@ -320,6 +320,9 @@ gl_create_context(Display *dpy, int screen, GLContextState *parent)
if (status != Success)
goto error;
if (fbconfig_id == GLX_DONT_CARE)
goto choose_fbconfig;
fbconfigs = glXGetFBConfigs(dpy, screen, &n_fbconfigs);
if (!fbconfigs)
goto error;
@ -338,6 +341,7 @@ gl_create_context(Display *dpy, int screen, GLContextState *parent)
goto error;
}
else {
choose_fbconfig:
fbconfigs = glXChooseFBConfig(
dpy,
screen,