Files
gtk3/gdk/x11
Emmanuele Bassi a834078804 x11/gl: Do not specify the GLX context version
If we use GDK_GL_PROFILE_3_2_CORE we are asking for a core profile
according to the GLX_ARB_create_context_profile extension. For that,
we pass the GLX_CONTEXT_CORE_PROFILE_BIT_ARB value for the
GLX_CONTEXT_PROFILE_MASK_ARB attribute.

The specification for the extension says that:

  If the requested OpenGL version is less than 3.2,
  GLX_CONTEXT_PROFILE_MASK_ARB is ignored and the functionality
  of the context is determined solely by the requested version.

Since we're asking for a core profile, we assume a GL version greater
than or equal to 3.2; thus, we don't need to specify the
GLX_CONTEXT_MAJOR_VERSION_ARB or the GLX_CONTEXT_MINOR_VERSION_ARB
attributes, and instead just rely on whatever version GLX gives us.

This seems to work around a strange issue in Mesa; if we ask for a core
profile and any version > 3.0, we get broken rendering on any shared
context we create.
2015-01-10 00:07:51 +00:00
..
2014-03-26 20:09:30 -04:00
2012-02-27 17:06:11 +00:00
2012-02-27 17:06:11 +00:00
2012-02-27 17:06:11 +00:00
2014-06-11 21:55:15 -04:00
2012-02-27 17:06:11 +00:00
2014-11-24 10:02:54 -05:00
2014-01-28 00:21:26 -05:00
2014-06-11 21:55:15 -04:00
2014-06-11 21:55:15 -04:00
2014-06-11 21:55:15 -04:00
2014-01-28 00:21:26 -05:00
2014-10-13 10:43:31 -04:00
2012-02-27 17:06:11 +00:00
2014-02-19 18:56:05 -05:00
2014-10-13 10:43:31 -04:00
2012-02-27 17:06:11 +00:00