summaryrefslogtreecommitdiffstats
path: root/src/glx/driwindows_glx.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/driwindows_glx.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/driwindows_glx.c')
-rw-r--r--src/glx/driwindows_glx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/driwindows_glx.c b/src/glx/driwindows_glx.c
index 85525431bf9..b2dc810f8cb 100644
--- a/src/glx/driwindows_glx.c
+++ b/src/glx/driwindows_glx.c
@@ -240,7 +240,7 @@ driwindows_create_context_attribs(struct glx_screen *base,
identical values, so far
*/
- if (!psc->base.driScreen)
+ if (!psc->base.driScreen || !config_base)
return NULL;
/* Check the renderType value */