wined3d: Also update ds_current_size if there's no current DS location in surface_load_ds_location().

This commit is contained in:
Henri Verbeet 2011-04-19 00:07:56 +02:00 committed by Alexandre Julliard
parent 6abf5fff9d
commit 516ade9b2b

View file

@ -4390,6 +4390,8 @@ void surface_load_ds_location(IWineD3DSurfaceImpl *surface, struct wined3d_conte
* should do. */
FIXME("No up to date depth stencil location.\n");
surface->flags |= location;
surface->ds_current_size.cx = surface->resource.width;
surface->ds_current_size.cy = surface->resource.height;
return;
}