xlib: fix glXDestroyContext in Gallium frontends
authorLuc Ma <luc@sietium.com>
Thu, 2 Feb 2023 11:29:45 +0000 (19:29 +0800)
committerLuc Ma <onion0709@gmail.com>
Sat, 4 Feb 2023 22:25:09 +0000 (22:25 +0000)
commitabe6d750e58d371624de75f4bad365c61e0196c1
tree7a7922ea3b99b9bcbbb34e4731cde76a5105da43
parent8f928a95e167423320af711b21270a8212f34628
xlib: fix glXDestroyContext in Gallium frontends

when glx is built with -Dglx=xlib, the mishandle in
glXDestroyContext causes glmark2 to exit unexpectedly.

Error: Glmark2 needs OpenGL(ES) version >= 2.0 to run (but version string is: '(null)')!
Error: Failed to add vertex shader from file None:
Error:   Failed to create the new program
[build] <default>: Set up failed

Gitlab: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3985

Signed-off-by: Luc Ma <luc@sietium.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21067>
src/gallium/frontends/glx/xlib/glx_api.c