glx: check drawable type before create drawble
authorQiang Yu <yuq825@gmail.com>
Tue, 9 Nov 2021 08:52:40 +0000 (16:52 +0800)
committerMarge Bot <emma+marge@anholt.net>
Tue, 7 Dec 2021 03:26:13 +0000 (03:26 +0000)
commit6625c960c5827018be1482c45d8cd21b8d768946
tree16138ba8494e512b91581c69ac6fa6d99fef55d6
parentbc8a51a79a5fc9981fd99c0d450c08630bfb7127
glx: check drawable type before create drawble

If glxDrawable is not a X window ID, we can only support
GLXPbuffer now.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13750>
src/glx/dri_common.c