[v7 06/10] ddraw: Check for mipmap sublevel through caps in ddraw_surface7_SetColorKey().
Henri Verbeet
hverbeet at gmail.com
Thu Nov 12 04:06:02 CST 2015
On 10 November 2015 at 14:09, Riccardo Bortolato <rikyz619 at gmail.com> wrote:
> @@ -4727,13 +4727,8 @@ static HRESULT WINAPI ddraw_surface7_SetColorKey(IDirectDrawSurface7 *iface, DWO
>
> TRACE("iface %p, flags %#x, color_key %p.\n", iface, flags, color_key);
>
> - wined3d_mutex_lock();
> - if (!surface->wined3d_texture)
> - {
> - wined3d_mutex_unlock();
> + if (surface->surface_desc.ddsCaps.dwCaps2 & DDSCAPS2_MIPMAPSUBLEVEL)
> return DDERR_NOTONMIPMAPSUBLEVEL;
> - }
> - wined3d_mutex_unlock();
>
This is probably fine, but depends on the test to go in.
More information about the wine-devel
mailing list