Commit aa305c4a authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

ddraw: Don't depend on IWineD3DDevice_CreateSurface() not touching the surface…

ddraw: Don't depend on IWineD3DDevice_CreateSurface() not touching the surface parameter on failure. The reason it actually fails is because of ddraw trying to create surface of type "SURFACE_UNKNOWN". Stefan should have a patch for that.
parent 41b3b8e4
......@@ -1655,9 +1655,11 @@ IDirectDrawImpl_RecreateSurfacesCallback(IDirectDrawSurface7 *surf,
TRUE /* Lockable */, FALSE /* Discard */, surfImpl->mipmap_level, &surfImpl->WineD3DSurface, Usage, Pool,
MultiSampleType, MultiSampleQuality, This->ImplType, Parent, &ddraw_null_wined3d_parent_ops);
IUnknown_Release(Parent);
if(hr != D3D_OK)
if (FAILED(hr))
{
surfImpl->WineD3DSurface = wineD3DSurface;
return hr;
}
IWineD3DSurface_SetClipper(surfImpl->WineD3DSurface, clipper);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment