mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
wined3d: Add a performance warning for mapping a dynamic surface without WINED3D_MAP_DISCARD.
This commit is contained in:
parent
fa5d091051
commit
0e32c9a247
@ -894,6 +894,9 @@ static void surface_map(struct wined3d_surface *surface, const RECT *rect, DWORD
|
||||
}
|
||||
else
|
||||
{
|
||||
if (surface->resource.usage & WINED3DUSAGE_DYNAMIC)
|
||||
WARN_(d3d_perf)("Mapping a dynamic surface without WINED3D_MAP_DISCARD.\n");
|
||||
|
||||
/* surface_load_location() does not check if the rectangle specifies
|
||||
* the full surface. Most callers don't need that, so do it here. */
|
||||
if (rect && !rect->top && !rect->left
|
||||
|
Loading…
Reference in New Issue
Block a user