Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b943c791
Commit
b943c791
authored
Mar 26, 2018
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Handle DDLOCK_WRITEONLY in wined3dmapflags_from_ddrawmapflags().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1b26c278
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
utils.c
dlls/ddraw/utils.c
+2
-2
No files found.
dlls/ddraw/utils.c
View file @
b943c791
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment