From: gb Date: Tue, 20 Apr 2010 07:51:23 +0000 (+0000) Subject: Fix OpenGL rendering on G45 systems. X-Git-Tag: 1.19.3~503^2~3529 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa11094655dc5751646c73c48e42801f9a5fe16c;p=platform%2Fupstream%2Fgstreamer.git Fix OpenGL rendering on G45 systems. --- 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,