Commit a01d4730 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Fix crash on resource destroy

parent 2ca4db39
......@@ -1178,6 +1178,7 @@ panfrost_resource_create_front(struct pipe_screen *screen,
struct panfrost_resource *so = CALLOC_STRUCT(panfrost_resource);
so->base = *template;
so->base.screen = screen;
#ifdef HAVE_DRI3
pipe_reference_init(&so->base.reference, 1);
#endif
......
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