utils: fix gl_create_context() with parent context set.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 24 Jul 2012 08:58:32 +0000 (10:58 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 24 Jul 2012 13:57:57 +0000 (15:57 +0200)
commite52def47371f3934ee57a98717e3d13237accb4b
treef1d70913b149bfbd5b6505659d903623b6f7b92c
parent753a56e9a15964df7b4658bba8ad041a7f1fac76
utils: fix gl_create_context() with parent context set.

If GLX window was created from a foreign Display, then that same Display shall
be used for subsequent glXMakeCurrent(). This means that gl_create_context()
will now use the same Display that the parent, if available.

This fixes cluttersink with the Intel GenX VA driver.
gst-libs/gst/vaapi/gstvaapiutils_glx.c