summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r200
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2017-05-24 22:14:44 -0700
committerIan Romanick <[email protected]>2017-05-31 21:14:44 -0700
commitc24881d39c139c451c1c096d6b0a98c8945c902b (patch)
treeccc9ed1831a9448801271e747b84e8df9d7bc937 /src/mesa/drivers/dri/r200
parent2dcec62075d8da8b7d8741df75b09907e1eea460 (diff)
r100,r200: Don't assume glVisual is non-NULL during context creation
Thanks to EGL_MESA_configless_context, the visual pointer can be NULL. Fixes a segfault (or assertion failure) in piglit's egl-configless-context test. Signed-off-by: Ian Romanick <[email protected]> Cc: [email protected] Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/r200')
-rw-r--r--src/mesa/drivers/dri/r200/r200_context.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_context.c b/src/mesa/drivers/dri/r200/r200_context.c
index 8f354c15b3c..aaa9b9317df 100644
--- a/src/mesa/drivers/dri/r200/r200_context.c
+++ b/src/mesa/drivers/dri/r200/r200_context.c
@@ -199,7 +199,6 @@ GLboolean r200CreateContext( gl_api api,
return false;
}
- assert(glVisual);
assert(driContextPriv);
assert(screen);