Fix OpenGL rendering on G45 systems.
authorgb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>
Tue, 20 Apr 2010 07:51:23 +0000 (07:51 +0000)
committergb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>
Tue, 20 Apr 2010 07:51:23 +0000 (07:51 +0000)
gst-libs/gst/vaapi/gstvaapiutils_glx.c

index 6cd88af..d84edfb 100644 (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,