mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-17 19:00:33 +01:00
glx/dri3: guard in_current_context against a disappeared drawable
Cc: 17.0 <mesa-stable@lists.freedesktop.org> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
40c304fc06
commit
21ec35566b
1 changed files with 4 additions and 0 deletions
|
|
@ -119,6 +119,10 @@ static bool
|
|||
glx_dri3_in_current_context(struct loader_dri3_drawable *draw)
|
||||
{
|
||||
struct dri3_drawable *priv = loader_drawable_to_dri3_drawable(draw);
|
||||
|
||||
if (!priv)
|
||||
return false;
|
||||
|
||||
struct dri3_context *pcp = (struct dri3_context *) __glXGetCurrentContext();
|
||||
struct dri3_screen *psc = (struct dri3_screen *) priv->base.psc;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue