wined3d: Prepare GL textures in surface_load_ds_location.
Signed-off-by: Stefan Dösinger <stefandoesinger@gmx.at> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f586683e78
commit
638f6c1ac8
|
@ -3631,10 +3631,10 @@ void surface_load_ds_location(struct wined3d_surface *surface, struct wined3d_co
|
|||
return;
|
||||
}
|
||||
|
||||
wined3d_surface_prepare(surface, context, location);
|
||||
if (surface->locations & WINED3D_LOCATION_DISCARDED)
|
||||
{
|
||||
TRACE("Surface was discarded, no need copy data.\n");
|
||||
wined3d_surface_prepare(surface, context, location);
|
||||
surface->locations &= ~WINED3D_LOCATION_DISCARDED;
|
||||
surface->locations |= location;
|
||||
surface->ds_current_size.cx = surface->resource.width;
|
||||
|
|
Loading…
Reference in New Issue