mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
a834078804
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. |
||
---|---|---|
.. | ||
gdkapplaunchcontext-x11.c | ||
gdkasync.c | ||
gdkasync.h | ||
gdkcursor-x11.c | ||
gdkdevice-core-x11.c | ||
gdkdevice-xi2.c | ||
gdkdevicemanager-core-x11.c | ||
gdkdevicemanager-x11.c | ||
gdkdevicemanager-xi2.c | ||
gdkdevicemanagerprivate-core.h | ||
gdkdisplay-x11.c | ||
gdkdisplay-x11.h | ||
gdkdisplaymanager-x11.c | ||
gdkdnd-x11.c | ||
gdkeventsource.c | ||
gdkeventsource.h | ||
gdkeventtranslator.c | ||
gdkeventtranslator.h | ||
gdkgeometry-x11.c | ||
gdkglcontext-x11.c | ||
gdkglcontext-x11.h | ||
gdkkeys-x11.c | ||
gdkmain-x11.c | ||
gdkprivate-x11.h | ||
gdkproperty-x11.c | ||
gdkscreen-x11.c | ||
gdkscreen-x11.h | ||
gdkselection-x11.c | ||
gdksettings.c | ||
gdktestutils-x11.c | ||
gdkvisual-x11.c | ||
gdkwindow-x11.c | ||
gdkwindow-x11.h | ||
gdkx11applaunchcontext.h | ||
gdkx11cursor.h | ||
gdkx11device-core.h | ||
gdkx11device-xi2.h | ||
gdkx11device.h | ||
gdkx11devicemanager-core.h | ||
gdkx11devicemanager-xi2.h | ||
gdkx11devicemanager-xi.h | ||
gdkx11devicemanager.h | ||
gdkx11display.h | ||
gdkx11displaymanager.h | ||
gdkx11dnd.h | ||
gdkx11glcontext.h | ||
gdkx11keys.h | ||
gdkx11property.h | ||
gdkx11screen.h | ||
gdkx11selection.h | ||
gdkx11utils.h | ||
gdkx11visual.h | ||
gdkx11window.h | ||
gdkx.h | ||
gdkxftdefaults.c | ||
gdkxid.c | ||
Makefile.am | ||
MwmUtil.h | ||
xsettings-client.c | ||
xsettings-client.h |