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:
parent
62277fb777
commit
724463d666
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue