Henri Verbeet : wined3d: Use the correct resource_ops in cubetexture_unload ().
Module: wine Branch: master Commit: 6110fe3a823ac4f0e67746cd1113485d12604777 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6110fe3a823ac4f0e67746cd11... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Mar 15 18:19:32 2011 +0100 wined3d: Use the correct resource_ops in cubetexture_unload(). --- dlls/wined3d/cubetexture.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/cubetexture.c b/dlls/wined3d/cubetexture.c index 4171d55..9a27f5b 100644 --- a/dlls/wined3d/cubetexture.c +++ b/dlls/wined3d/cubetexture.c @@ -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); }
participants (1)
-
Alexandre Julliard