nir: Add barrier intrinsic function
[mesa.git] / src / mesa / state_tracker / st_context.c
index 69e0f929db81958137f5abadc81cae5a616918a7..ed9ed0f1b6c6b1e928eb74657ff2b197543d65a2 100644 (file)
@@ -376,12 +376,6 @@ void st_destroy_context( struct st_context *st )
    }
    pipe_surface_reference(&st->state.framebuffer.zsbuf, NULL);
 
-   pipe->set_index_buffer(pipe, NULL);
-
-   for (i = 0; i < PIPE_SHADER_TYPES; i++) {
-      pipe->set_constant_buffer(pipe, i, 0, NULL);
-   }
-
    _mesa_delete_program_cache(st->ctx, st->pixel_xfer.cache);
 
    _vbo_DestroyContext(st->ctx);