wined3d: Use the correct resource_ops in cubetexture_unload().
This commit is contained in:
parent
235dbbb5d7
commit
6110fe3a82
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue