vc4: Fix a leak of the last color read/write surface on context destroy.

This commit is contained in:
Eric Anholt
2015-10-06 16:32:03 -07:00
parent 922e0680f9
commit b6cd39fc47
+3
View File
@@ -188,6 +188,9 @@ vc4_context_destroy(struct pipe_context *pctx)
pipe_surface_reference(&vc4->framebuffer.cbufs[0], NULL);
pipe_surface_reference(&vc4->framebuffer.zsbuf, NULL);
pipe_surface_reference(&vc4->color_write, NULL);
pipe_surface_reference(&vc4->color_read, NULL);
vc4_program_fini(pctx);
ralloc_free(vc4);