projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40c304f
)
glx/dri3: guard in_current_context against a disappeared drawable
author
Nicolai Hähnle
<nicolai.haehnle@amd.com>
Thu, 2 Feb 2017 17:01:06 +0000
(18:01 +0100)
committer
Nicolai Hähnle
<nicolai.haehnle@amd.com>
Mon, 6 Feb 2017 16:39:10 +0000
(17:39 +0100)
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>
src/glx/dri3_glx.c
patch
|
blob
|
history
diff --git
a/src/glx/dri3_glx.c
b/src/glx/dri3_glx.c
index f7bcba32f3ee4356f887d71243ac88c3b8c0cda5..2d40f0ad458f10b5ef3608ee8a511c7d80d246fc 100644
(file)
--- a/
src/glx/dri3_glx.c
+++ b/
src/glx/dri3_glx.c
@@
-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;