27 Jan
2016
27 Jan
'16
2:09 p.m.
On 26 January 2016 at 22:51, Matteo Bruni <mbruni(a)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.