[PATCH 5/8] wined3d: Fail texture creation when invalid multisample settings are specified.

Henri Verbeet hverbeet at gmail.com
Wed Jan 27 08:09:48 CST 2016


On 26 January 2016 at 22:51, Matteo Bruni <mbruni at codeweavers.com> wrote:
> @@ -1137,6 +1137,8 @@ static HRESULT d3d9_device_create_surface(struct d3d9_device *device, UINT width
>      {
>          wined3d_mutex_unlock();
>          WARN("Failed to create texture, hr %#x.\n", hr);
> +        if (hr == D3DERR_NOTAVAILABLE)
> +            hr = D3DERR_INVALIDCALL;
That should check for WINED3DERR_NOTAVAILABLE.



More information about the wine-devel mailing list