mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
Fix OpenGL rendering on G45 systems.
This commit is contained in:
parent
d1709fef62
commit
fa11094655
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue