From fa11094655dc5751646c73c48e42801f9a5fe16c Mon Sep 17 00:00:00 2001 From: gb Date: Tue, 20 Apr 2010 07:51:23 +0000 Subject: [PATCH] Fix OpenGL rendering on G45 systems. --- gst-libs/gst/vaapi/gstvaapiutils_glx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst-libs/gst/vaapi/gstvaapiutils_glx.c b/gst-libs/gst/vaapi/gstvaapiutils_glx.c index 6cd88af..d84edfb 100644 --- a/gst-libs/gst/vaapi/gstvaapiutils_glx.c +++ b/gst-libs/gst/vaapi/gstvaapiutils_glx.c @@ -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, -- 2.7.4