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
14434751
Commit
14434751
authored
Nov 01, 2018
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Prefer bind flags over usage flags in wined3d_texture_init().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e2ec160e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
texture.c
dlls/wined3d/texture.c
+4
-4
No files found.
dlls/wined3d/texture.c
View file @
14434751
...
...
@@ -2906,10 +2906,10 @@ static HRESULT wined3d_texture_init(struct wined3d_texture *texture, const struc
return
WINED3DERR_INVALIDCALL
;
}
if
(
!
(
desc
->
usage
&
(
WINED3DUSAGE_DYNAMIC
|
WINED3DUSAGE_RENDERTARGET
|
WINED3DUSAGE_DEPTHSTENCIL
)
)
&&
(
flags
&
WINED3D_TEXTURE_CREATE_MAPPABLE
))
if
(
(
flags
&
WINED3D_TEXTURE_CREATE_MAPPABLE
)
&&
!
((
desc
->
usage
&
WINED3DUSAGE_DYNAMIC
)
||
(
desc
->
bind_flags
&
(
WINED3D_BIND_RENDER_TARGET
|
WINED3D_BIND_DEPTH_STENCIL
))
))
WARN
(
"Creating a mappable texture that doesn't specify dynamic usage.
\n
"
);
if
(
desc
->
usage
&
WINED3DUSAGE_RENDER
TARGET
&&
desc
->
access
&
WINED3D_RESOURCE_ACCESS_CPU
)
if
(
desc
->
bind_flags
&
WINED3D_BIND_RENDER_
TARGET
&&
desc
->
access
&
WINED3D_RESOURCE_ACCESS_CPU
)
FIXME
(
"Trying to create a CPU accessible render target.
\n
"
);
pow2_width
=
desc
->
width
;
...
...
@@ -2955,7 +2955,7 @@ static HRESULT wined3d_texture_init(struct wined3d_texture *texture, const struc
texture
->
pow2_height
=
pow2_height
;
if
((
pow2_width
>
d3d_info
->
limits
.
texture_size
||
pow2_height
>
d3d_info
->
limits
.
texture_size
)
&&
(
desc
->
usage
&
WINED3DUSAGE_TEXTUR
E
))
&&
(
desc
->
bind_flags
&
WINED3D_BIND_SHADER_RESOURC
E
))
{
/* One of four options:
* 1: Do the same as we do with NPOT and scale the texture. (Any
...
...
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