r100,r200: Don't assume glVisual is non-NULL during context creation
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 25 May 2017 05:14:44 +0000 (22:14 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 1 Jun 2017 04:14:44 +0000 (21:14 -0700)
commitc24881d39c139c451c1c096d6b0a98c8945c902b
treeccc9ed1831a9448801271e747b84e8df9d7bc937
parent2dcec62075d8da8b7d8741df75b09907e1eea460
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 <ian.d.romanick@intel.com>
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/r200/r200_context.c
src/mesa/drivers/dri/radeon/radeon_common_context.c
src/mesa/drivers/dri/radeon/radeon_context.c