wined3d: Use the correct resource_ops in cubetexture_unload().

This commit is contained in:
Henri Verbeet 2011-03-15 18:19:32 +01:00 committed by Alexandre Julliard
parent 235dbbb5d7
commit 6110fe3a82
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ static void cubetexture_unload(struct wined3d_resource *resource)
struct wined3d_resource *sub_resource = texture->baseTexture.sub_resources[i];
IWineD3DSurfaceImpl *surface = surface_from_resource(sub_resource);
resource->resource_ops->resource_unload(sub_resource);
sub_resource->resource_ops->resource_unload(sub_resource);
surface_set_texture_name(surface, 0, TRUE);
surface_set_texture_name(surface, 0, FALSE);
}