Commit 6110fe3a authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Use the correct resource_ops in cubetexture_unload().

parent 235dbbb5
...@@ -151,7 +151,7 @@ static void cubetexture_unload(struct wined3d_resource *resource) ...@@ -151,7 +151,7 @@ static void cubetexture_unload(struct wined3d_resource *resource)
struct wined3d_resource *sub_resource = texture->baseTexture.sub_resources[i]; struct wined3d_resource *sub_resource = texture->baseTexture.sub_resources[i];
IWineD3DSurfaceImpl *surface = surface_from_resource(sub_resource); 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, TRUE);
surface_set_texture_name(surface, 0, FALSE); surface_set_texture_name(surface, 0, FALSE);
} }
......
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