summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/frontends/dri/dri_context.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mesa/src/gallium/frontends/dri/dri_context.c')
-rw-r--r--lib/mesa/src/gallium/frontends/dri/dri_context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mesa/src/gallium/frontends/dri/dri_context.c b/lib/mesa/src/gallium/frontends/dri/dri_context.c
index 39eae5f75..55bfa224b 100644
--- a/lib/mesa/src/gallium/frontends/dri/dri_context.c
+++ b/lib/mesa/src/gallium/frontends/dri/dri_context.c
@@ -271,6 +271,8 @@ dri_unbind_context(__DRIcontext * cPriv)
stapi->make_current(stapi, NULL, NULL, NULL);
}
}
+ ctx->dPriv = NULL;
+ ctx->rPriv = NULL;
return GL_TRUE;
}