st/vdpau: s/surface/resource/ to fix compiler warning
authorBrian Paul <brianp@vmware.com>
Mon, 20 Jan 2014 15:51:25 +0000 (07:51 -0800)
committerBrian Paul <brianp@vmware.com>
Mon, 20 Jan 2014 15:54:42 +0000 (07:54 -0800)
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/vdpau/output.c

index 59874cb096530d6d5709c4887a6d78aa6f1e1070..aa7e997b591ddd178b5a69ff45eda50f8d6811ac 100644 (file)
@@ -117,7 +117,7 @@ vlVdpOutputSurfaceCreate(VdpDevice device,
 err_resource:
    pipe_sampler_view_reference(&vlsurface->sampler_view, NULL);
    pipe_surface_reference(&vlsurface->surface, NULL);
-   pipe_surface_reference(&res, NULL);
+   pipe_resource_reference(&res, NULL);
 err_unlock:
    pipe_mutex_unlock(dev->mutex);
    FREE(vlsurface);