[PATCH v2 2/5] d3d9: Handle D3DUSAGE_AUTOGENMIPMAP textures entirely in d3d9.

Matteo Bruni matteo.mystral at gmail.com
Wed Feb 14 09:52:15 CST 2018


2018-02-14 14:57 GMT+01:00 Henri Verbeet <hverbeet at gmail.com>:
> On 13 February 2018 at 03:30, Matteo Bruni <mbruni at codeweavers.com> wrote:
>> @@ -95,6 +151,8 @@ static ULONG WINAPI d3d9_texture_2d_Release(IDirect3DTexture9 *iface)
>>          struct d3d9_surface *surface;
>>
>>          wined3d_mutex_lock();
>> +        if (texture->wined3d_srv)
>> +            wined3d_shader_resource_view_decref(texture->wined3d_srv);
> Shouldn't this happen for volume textures as well?

wined3d_srv should never be set for volume textures but sure, I could
add the release there too, to be safe WRT future changes.



More information about the wine-devel mailing list