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

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2016-03-14 17:02:11 +01:00 committed by Alexandre Julliard
parent 62277fb777
commit 724463d666
1 changed files with 1 additions and 1 deletions

View File

@ -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;