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
5ceaf934
Commit
5ceaf934
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 2D textures.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
29d824d1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
device.c
dlls/d3d9/device.c
+1
-1
texture.c
dlls/d3d9/texture.c
+2
-2
No files found.
dlls/d3d9/device.c
View file @
5ceaf934
...
...
@@ -1273,7 +1273,7 @@ static HRESULT d3d9_device_create_surface(struct d3d9_device *device, UINT width
desc
.
usage
=
usage
&
WINED3DUSAGE_MASK
;
if
(
pool
==
D3DPOOL_SCRATCH
)
desc
.
usage
|=
WINED3DUSAGE_SCRATCH
;
desc
.
access
=
wined3daccess_from_d3dpool
(
pool
);
desc
.
access
=
wined3daccess_from_d3dpool
(
pool
)
|
WINED3D_RESOURCE_ACCESS_MAP
;
desc
.
width
=
width
;
desc
.
height
=
height
;
desc
.
depth
=
1
;
...
...
dlls/d3d9/texture.c
View file @
5ceaf934
...
...
@@ -1222,7 +1222,7 @@ HRESULT texture_init(struct d3d9_texture *texture, struct d3d9_device *device,
desc
.
usage
|=
WINED3DUSAGE_TEXTURE
;
if
(
pool
==
D3DPOOL_SCRATCH
)
desc
.
usage
|=
WINED3DUSAGE_SCRATCH
;
desc
.
access
=
wined3daccess_from_d3dpool
(
pool
);
desc
.
access
=
wined3daccess_from_d3dpool
(
pool
)
|
WINED3D_RESOURCE_ACCESS_MAP
;
desc
.
width
=
width
;
desc
.
height
=
height
;
desc
.
depth
=
1
;
...
...
@@ -1277,7 +1277,7 @@ HRESULT cubetexture_init(struct d3d9_texture *texture, struct d3d9_device *devic
desc
.
usage
|=
WINED3DUSAGE_LEGACY_CUBEMAP
|
WINED3DUSAGE_TEXTURE
;
if
(
pool
==
D3DPOOL_SCRATCH
)
desc
.
usage
|=
WINED3DUSAGE_SCRATCH
;
desc
.
access
=
wined3daccess_from_d3dpool
(
pool
);
desc
.
access
=
wined3daccess_from_d3dpool
(
pool
)
|
WINED3D_RESOURCE_ACCESS_MAP
;
desc
.
width
=
edge_length
;
desc
.
height
=
edge_length
;
desc
.
depth
=
1
;
...
...
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