glx: Create the dummy Window with the GLX context
authorEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 3 Dec 2009 20:49:54 +0000 (20:49 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 3 Feb 2010 16:34:27 +0000 (16:34 +0000)
commitd2c091e62d4b9e897e8f8ef5de99f20417cc6682
treedbb55b5ff84935c0a6ad575c6df9fc445a49a2e5
parent5eb6fb74b660d22e7f31867b16997ee9f63bef4b
glx: Create the dummy Window with the GLX context

Since we must guarantee that Cogl has a GL context to query, it is too
late to use the "dummy Window" trick from within the get_features()
virtual function implementation.

Instead, we can create a dummy Window from create_context() itself and
leave it around - basically trading a default stage with a dummy X
window.

We need to have the dummy X window around all the time so that the
GLX context can be selected and made current.
clutter/clutter-main.c
clutter/glx/clutter-backend-glx.c
clutter/glx/clutter-backend-glx.h