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
71b982d0
Commit
71b982d0
authored
Nov 25, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Just use surface_invalidate_location() in surface_map().
parent
82c1d013
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
surface.c
dlls/wined3d/surface.c
+3
-4
No files found.
dlls/wined3d/surface.c
View file @
71b982d0
...
...
@@ -779,7 +779,6 @@ static void surface_map(struct wined3d_surface *surface, const RECT *rect, DWORD
TRACE
(
"WINED3D_MAP_DISCARD flag passed, marking SYSMEM as up to date.
\n
"
);
surface_prepare_system_memory
(
surface
);
surface_validate_location
(
surface
,
SFLAG_INSYSMEM
);
surface_invalidate_location
(
surface
,
~
SFLAG_INSYSMEM
);
}
else
{
...
...
@@ -789,6 +788,9 @@ static void surface_map(struct wined3d_surface *surface, const RECT *rect, DWORD
surface_load_location
(
surface
,
SFLAG_INSYSMEM
);
}
if
(
!
(
flags
&
(
WINED3D_MAP_NO_DIRTY_UPDATE
|
WINED3D_MAP_READONLY
)))
surface_invalidate_location
(
surface
,
~
SFLAG_INSYSMEM
);
if
(
surface
->
flags
&
SFLAG_PBO
)
{
const
struct
wined3d_gl_info
*
gl_info
;
...
...
@@ -815,9 +817,6 @@ static void surface_map(struct wined3d_surface *surface, const RECT *rect, DWORD
context_release
(
context
);
}
if
(
!
(
flags
&
(
WINED3D_MAP_NO_DIRTY_UPDATE
|
WINED3D_MAP_READONLY
)))
surface_set_dirty
(
surface
);
}
static
void
surface_unmap
(
struct
wined3d_surface
*
surface
)
...
...
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