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
0610d1ee
Commit
0610d1ee
authored
Jun 12, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Invalidate the entire buffer on maps with WINED3DLOCK_DISCARD.
parent
611b541f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
buffer.c
dlls/wined3d/buffer.c
+14
-1
No files found.
dlls/wined3d/buffer.c
View file @
0610d1ee
...
@@ -1011,7 +1011,20 @@ HRESULT CDECL wined3d_buffer_map(struct wined3d_buffer *buffer, UINT offset, UIN
...
@@ -1011,7 +1011,20 @@ HRESULT CDECL wined3d_buffer_map(struct wined3d_buffer *buffer, UINT offset, UIN
flags
=
buffer_sanitize_flags
(
buffer
,
flags
);
flags
=
buffer_sanitize_flags
(
buffer
,
flags
);
if
(
!
(
flags
&
WINED3DLOCK_READONLY
))
if
(
!
(
flags
&
WINED3DLOCK_READONLY
))
{
{
if
(
!
buffer_add_dirty_area
(
buffer
,
offset
,
size
))
return
E_OUTOFMEMORY
;
if
(
flags
&
WINED3DLOCK_DISCARD
)
{
/* DISCARD invalidates the entire buffer, regardless of the
* specified offset and size. Some applications also depend on the
* entire buffer being uploaded in that case. Two such
* applications are Port Royale and Darkstar One. */
if
(
!
buffer_add_dirty_area
(
buffer
,
0
,
0
))
return
E_OUTOFMEMORY
;
}
else
{
if
(
!
buffer_add_dirty_area
(
buffer
,
offset
,
size
))
return
E_OUTOFMEMORY
;
}
}
}
count
=
++
buffer
->
resource
.
map_count
;
count
=
++
buffer
->
resource
.
map_count
;
...
...
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