diff options
author | Kristian Høgsberg <[email protected]> | 2010-07-29 18:44:26 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2010-07-29 18:49:10 -0400 |
commit | f485ee724d1f1bb57a5c8931f28e7a45ceb5b5d5 (patch) | |
tree | 71540d79ac1bc1f49d9c9e1552f7b8622fbfe08f /src/glx/indirect_glx.c | |
parent | cd601513f5ff4f488a6f6527bb033e39ee62ffda (diff) |
glx: Compare old ctx against dummyCtx, not NULL
https://bugs.freedesktop.org/show_bug.cgi?id=29302
Diffstat (limited to 'src/glx/indirect_glx.c')
-rw-r--r-- | src/glx/indirect_glx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/indirect_glx.c b/src/glx/indirect_glx.c index cbc3129a5b9..f0598409cd6 100644 --- a/src/glx/indirect_glx.c +++ b/src/glx/indirect_glx.c @@ -137,7 +137,7 @@ indirect_bind_context(struct glx_context *gc, struct glx_context *old, Display *dpy = gc->psc->dpy; int opcode = __glXSetupForCommand(dpy); - if (old && !old->isDirect && old->psc->dpy == dpy) + if (old != &dummyContext && !old->isDirect && old->psc->dpy == dpy) tag = old->currentContextTag; else tag = None; |