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
1733f86d
Commit
1733f86d
authored
Jul 20, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Do not try to unmap already unmapped BOs in wined3d_texture_update_sub_resource().
parent
f0706faa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
texture.c
dlls/wined3d/texture.c
+2
-1
No files found.
dlls/wined3d/texture.c
View file @
1733f86d
...
...
@@ -4737,7 +4737,8 @@ void wined3d_texture_update_sub_resource(struct wined3d_texture *texture, unsign
wined3d_texture_validate_location
(
texture
,
sub_resource_idx
,
WINED3D_LOCATION_BUFFER
);
wined3d_texture_invalidate_location
(
texture
,
sub_resource_idx
,
~
WINED3D_LOCATION_BUFFER
);
/* Try to free address space if we are not mapping persistently. */
wined3d_context_unmap_bo_address
(
context
,
(
const
struct
wined3d_bo_address
*
)
&
upload_bo
->
addr
,
0
,
NULL
);
if
(
upload_bo
->
addr
.
buffer_object
->
map_ptr
)
wined3d_context_unmap_bo_address
(
context
,
(
const
struct
wined3d_bo_address
*
)
&
upload_bo
->
addr
,
0
,
NULL
);
}
/* Only load the sub-resource for partial updates. */
...
...
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