gallium/osmesa: Fix the inability to set no context as current.
authorHal Gentz <zegentzy@protonmail.com>
Sun, 15 Sep 2019 21:29:50 +0000 (15:29 -0600)
committerHal Gentz <zegentzy@protonmail.com>
Fri, 20 Sep 2019 20:04:12 +0000 (14:04 -0600)
commit57c894334ee14c7075bc8c1fb8ff180631ccb527
tree51ce0e82aa694698138115d81a36d9ac736b0667
parent6e4fd14b0feb04d991e250792b013fee6758a1b3
gallium/osmesa: Fix the inability to set no context as current.

Currently there is no way to make no context current w/gallium + osmesa.
The non-gallium version of osmesa does this if the context and buffer
passed to `OSMesaMakeCurrent` are both null. This small change makes it
so that this is also the case with the gallium version.

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/state_trackers/osmesa/osmesa.c