st/dri: remove unused dummyContext value
[mesa.git] / src / gallium / state_trackers / dri / dri_context.c
index 6c617197eca17534d42758072f520eb89d70b56c..830e511fefddd428d28291b5c46e960ac534a8cf 100644 (file)
@@ -109,9 +109,6 @@ dri_destroy_context(__DRIcontextPrivate * cPriv)
     */
    st_flush(ctx->st, 0, NULL);
 
-   if (screen->dummyContext == ctx)
-      screen->dummyContext = NULL;
-
    /* Also frees ctx->pipe?
     */
    st_destroy_context(ctx->st);
@@ -153,11 +150,6 @@ dri_make_current(__DRIcontextPrivate * cPriv,
 
       ++ctx->bind_count;
 
-      /* This is for situations in which we need a rendering context but
-       * there may not be any currently bound.
-       */
-      screen->dummyContext = ctx;
-
       if (ctx->dPriv != driDrawPriv) {
         ctx->dPriv = driDrawPriv;
         ctx->d_stamp = driDrawPriv->lastStamp - 1;