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
29d824d1
Commit
29d824d1
authored
Feb 13, 2018
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Set WINED3D_RESOURCE_ACCESS_MAP on buffers.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ae5d802b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
buffer.c
dlls/d3d9/buffer.c
+2
-2
No files found.
dlls/d3d9/buffer.c
View file @
29d824d1
...
@@ -290,7 +290,7 @@ HRESULT vertexbuffer_init(struct d3d9_vertexbuffer *buffer, struct d3d9_device *
...
@@ -290,7 +290,7 @@ HRESULT vertexbuffer_init(struct d3d9_vertexbuffer *buffer, struct d3d9_device *
desc
.
byte_width
=
size
;
desc
.
byte_width
=
size
;
desc
.
usage
=
usage
&
WINED3DUSAGE_MASK
;
desc
.
usage
=
usage
&
WINED3DUSAGE_MASK
;
desc
.
bind_flags
=
WINED3D_BIND_VERTEX_BUFFER
;
desc
.
bind_flags
=
WINED3D_BIND_VERTEX_BUFFER
;
desc
.
access
=
wined3daccess_from_d3dpool
(
pool
);
desc
.
access
=
wined3daccess_from_d3dpool
(
pool
)
|
WINED3D_RESOURCE_ACCESS_MAP
;
desc
.
misc_flags
=
0
;
desc
.
misc_flags
=
0
;
desc
.
structure_byte_stride
=
0
;
desc
.
structure_byte_stride
=
0
;
...
@@ -576,7 +576,7 @@ HRESULT indexbuffer_init(struct d3d9_indexbuffer *buffer, struct d3d9_device *de
...
@@ -576,7 +576,7 @@ HRESULT indexbuffer_init(struct d3d9_indexbuffer *buffer, struct d3d9_device *de
if
(
pool
==
D3DPOOL_SCRATCH
)
if
(
pool
==
D3DPOOL_SCRATCH
)
desc
.
usage
|=
WINED3DUSAGE_SCRATCH
;
desc
.
usage
|=
WINED3DUSAGE_SCRATCH
;
desc
.
bind_flags
=
WINED3D_BIND_INDEX_BUFFER
;
desc
.
bind_flags
=
WINED3D_BIND_INDEX_BUFFER
;
desc
.
access
=
wined3daccess_from_d3dpool
(
pool
);
desc
.
access
=
wined3daccess_from_d3dpool
(
pool
)
|
WINED3D_RESOURCE_ACCESS_MAP
;
desc
.
misc_flags
=
0
;
desc
.
misc_flags
=
0
;
desc
.
structure_byte_stride
=
0
;
desc
.
structure_byte_stride
=
0
;
...
...
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