Commit 90f98846 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Don't crash

parent f2510829
......@@ -339,9 +339,10 @@ softpipe_surface_destroy(struct pipe_context *pipe,
* needed post-processing to put them into hardware layout, this is
* where it would happen. For softpipe, nothing to do.
*/
assert(surf->texture);
pipe_resource_reference(&surf->texture, NULL);
//assert(surf->texture);
//pipe_resource_reference(&surf->texture, NULL);
FREE(surf);
printf("XXX destroy surface\n");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment