Commit 724463d6 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Get resource info from the texture in wined3d_surface_cleanup().

parent 62277fb7
...@@ -53,10 +53,10 @@ void wined3d_surface_cleanup(struct wined3d_surface *surface) ...@@ -53,10 +53,10 @@ void wined3d_surface_cleanup(struct wined3d_surface *surface)
if (surface->rb_multisample || surface->rb_resolved || !list_empty(&surface->renderbuffers)) if (surface->rb_multisample || surface->rb_resolved || !list_empty(&surface->renderbuffers))
{ {
struct wined3d_device *device = surface->container->resource.device;
struct wined3d_renderbuffer_entry *entry, *entry2; struct wined3d_renderbuffer_entry *entry, *entry2;
const struct wined3d_gl_info *gl_info; const struct wined3d_gl_info *gl_info;
struct wined3d_context *context; struct wined3d_context *context;
struct wined3d_device *device = surface->resource.device;
context = context_acquire(device, NULL); context = context_acquire(device, NULL);
gl_info = context->gl_info; gl_info = context->gl_info;
......
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