mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[0.4.11][DDRAW] Handle DDLOCK_WRITEONLY in wined3dmapflags_from_ddrawmapflags() CORE-18378 (#4713)
Mutes the logging: fixme:(dll/directx/wine/ddraw/utils.c:584) Unhandled flags 0x20. gets logged many times per second. It does affect several applications, e.g. the game 'Anno 1602' from 1998, and the 'Diablo 2 demo' from rapps, For both games it can be observed with both: our VBEMP driver and the VBox4.3.12 3D-accelerated-driver. Muting may improve performance a bit in such apps. It gets logged although no missing features can be perceived visually in the rendering. The regression was introduced to master by 0.4.9-dev-155-g9987f02917
Fix it by importing Wine-commitb943c7910b
ddraw: Handle DDLOCK_WRITEONLY in wined3dmapflags_from_ddrawmapflags(). Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> fix picked from 0.4.15-dev-5070-g305aae75f5
This commit is contained in:
parent
5332ed4663
commit
dc8fae969a
1 changed files with 2 additions and 2 deletions
|
@ -570,7 +570,7 @@ unsigned int wined3dmapflags_from_ddrawmapflags(unsigned int flags)
|
|||
unsigned int wined3d_flags;
|
||||
|
||||
wined3d_flags = flags & handled;
|
||||
if (!(flags & (DDLOCK_NOOVERWRITE | DDLOCK_DISCARDCONTENTS)))
|
||||
if (!(flags & (DDLOCK_NOOVERWRITE | DDLOCK_DISCARDCONTENTS | DDLOCK_WRITEONLY)))
|
||||
wined3d_flags |= WINED3D_MAP_READ;
|
||||
if (!(flags & DDLOCK_READONLY))
|
||||
wined3d_flags |= WINED3D_MAP_WRITE;
|
||||
|
@ -578,7 +578,7 @@ unsigned int wined3dmapflags_from_ddrawmapflags(unsigned int flags)
|
|||
wined3d_flags |= WINED3D_MAP_READ | WINED3D_MAP_WRITE;
|
||||
if (flags & DDLOCK_NODIRTYUPDATE)
|
||||
wined3d_flags |= WINED3D_MAP_NO_DIRTY_UPDATE;
|
||||
flags &= ~(handled | DDLOCK_WAIT | DDLOCK_READONLY | DDLOCK_NODIRTYUPDATE);
|
||||
flags &= ~(handled | DDLOCK_WAIT | DDLOCK_READONLY | DDLOCK_WRITEONLY | DDLOCK_NODIRTYUPDATE);
|
||||
|
||||
if (flags)
|
||||
FIXME("Unhandled flags %#x.\n", flags);
|
||||
|
|
Loading…
Reference in a new issue