wined3d: Sanitise map flags in wined3d_surface_map().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
edb3ea66a0
commit
c5d47bd6fe
|
@ -2184,6 +2184,8 @@ HRESULT wined3d_surface_map(struct wined3d_surface *surface, struct wined3d_map_
|
|||
}
|
||||
}
|
||||
|
||||
flags = wined3d_resource_sanitize_map_flags(&texture->resource, flags);
|
||||
|
||||
if (device->d3d_initialized)
|
||||
{
|
||||
context = context_acquire(device, NULL);
|
||||
|
|
Loading…
Reference in New Issue