Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f2fb3f11
Commit
f2fb3f11
authored
May 21, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
May 21, 2012
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move the resource map count field up to wined3d_resource.
parent
8ea086b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
buffer.c
dlls/wined3d/buffer.c
+3
-3
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/buffer.c
View file @
f2fb3f11
...
...
@@ -1008,7 +1008,7 @@ HRESULT CDECL wined3d_buffer_map(struct wined3d_buffer *buffer, UINT offset, UIN
if
(
!
buffer_add_dirty_area
(
buffer
,
offset
,
size
))
return
E_OUTOFMEMORY
;
}
count
=
InterlockedIncrement
(
&
buffer
->
lock_count
)
;
count
=
++
buffer
->
resource
.
map_count
;
if
(
buffer
->
buffer_object
)
{
...
...
@@ -1121,13 +1121,13 @@ void CDECL wined3d_buffer_unmap(struct wined3d_buffer *buffer)
* number of Map calls, d3d returns always D3D_OK.
* This is also needed to prevent Map from returning garbage on
* the next call (this will happen if the lock_count is < 0). */
if
(
!
buffer
->
lock
_count
)
if
(
!
buffer
->
resource
.
map
_count
)
{
WARN
(
"Unmap called without a previous map call.
\n
"
);
return
;
}
if
(
InterlockedDecrement
(
&
buffer
->
lock_count
)
)
if
(
--
buffer
->
resource
.
map_count
)
{
/* Delay loading the buffer until everything is unlocked */
TRACE
(
"Ignoring unmap.
\n
"
);
...
...
dlls/wined3d/wined3d_private.h
View file @
f2fb3f11
...
...
@@ -1838,6 +1838,7 @@ struct wined3d_resource
{
LONG
ref
;
LONG
bind_count
;
LONG
map_count
;
struct
wined3d_device
*
device
;
enum
wined3d_resource_type
type
;
const
struct
wined3d_format
*
format
;
...
...
@@ -2410,7 +2411,6 @@ struct wined3d_buffer
UINT
buffer_object_size
;
DWORD
flags
;
LONG
lock_count
;
struct
wined3d_map_range
*
maps
;
ULONG
maps_size
,
modified_areas
;
struct
wined3d_event_query
*
query
;
...
...
Vitaly Lipatov
@lav
mentioned in commit
73c82693
·
Sep 03, 2020
mentioned in commit
73c82693
mentioned in commit 73c826936b96f86cd4a85211f0fc85d94cce150d
Toggle commit list
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