wgl: Don't crash in stw_make_current if current framebuffer is NULL
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>
Wed, 9 Dec 2020 03:57:39 +0000 (22:57 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 12 Jan 2021 15:41:00 +0000 (15:41 +0000)
commita2751080aad2b061d8a2954c9144ed86fe1bba8d
tree3e5352773dfb1bb1bc1565e2f6ec949d82ccbcbd
parent255ca7ecda36c3623ef730304a13aa2e8b8c0cf8
wgl: Don't crash in stw_make_current if current framebuffer is NULL

Fixes #3878

Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7999>
src/gallium/frontends/wgl/stw_context.c