summaryrefslogtreecommitdiffstats
path: root/src/glx/dri_common.c
diff options
context:
space:
mode:
authorAdam Jackson <[email protected]>2017-11-14 15:13:06 -0500
committerAdam Jackson <[email protected]>2019-09-23 20:39:01 -0400
commit0d635ccc912d7122f35f81eec27d8b2c0a2a7a28 (patch)
tree69828bd7c50e62140760e5464fc6947f324264a9 /src/glx/dri_common.c
parent999c2aed8826f403b071f52b040ce25b56d35f9d (diff)
glx: Implement GLX_EXT_no_config_context
This is the GLX counterpart to EGL_KHR_no_config_context. Contexts may now be created without reference to an fbconfig, in which case it is treated as compatible with any fbconfig (and thus any GLX drawable). Khronos: https://github.com/KhronosGroup/OpenGL-Registry/pull/102 Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glx/dri_common.c')
-rw-r--r--src/glx/dri_common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c
index a5fae27fce9..d70bff43eb4 100644
--- a/src/glx/dri_common.c
+++ b/src/glx/dri_common.c
@@ -500,6 +500,10 @@ dri2_convert_glx_attribs(unsigned num_attribs, const uint32_t *attribs,
return false;
}
break;
+ case GLX_SCREEN:
+ /* Implies GLX_EXT_no_config_context */
+ *render_type = GLX_DONT_CARE;
+ break;
default:
/* If an unknown attribute is received, fail.
*/