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
68e0cd43
Commit
68e0cd43
authored
Dec 12, 2011
by
Matteo Bruni
Committed by
Alexandre Julliard
Dec 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Ignore invalid texture transform flags.
parent
fdd4df44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
shader.c
dlls/wined3d/shader.c
+21
-2
No files found.
dlls/wined3d/shader.c
View file @
68e0cd43
...
...
@@ -1911,9 +1911,28 @@ void find_ps_compile_args(const struct wined3d_state *state,
for
(
i
=
0
;
i
<
4
;
++
i
)
{
DWORD
flags
=
state
->
texture_states
[
i
][
WINED3DTSS_TEXTURETRANSFORMFLAGS
];
DWORD
tex_transform
=
flags
&
~
WINED3DTTFF_PROJECTED
;
DWORD
count
,
tex_transform
;
/* Filter some invalid flags */
count
=
flags
&
~
WINED3DTTFF_PROJECTED
;
if
(
count
>
WINED3DTTFF_COUNT4
)
{
WARN
(
"The application set an invalid TEXTURETRANSFORMFLAGS value.
\n
"
);
flags
=
count
=
0
;
}
tex_transform
=
count
;
if
(
flags
&
WINED3DTTFF_PROJECTED
)
tex_transform
|=
WINED3D_PSARGS_PROJECTED
;
{
enum
wined3d_sampler_texture_type
sampler_type
=
shader
->
reg_maps
.
sampler_type
[
i
];
if
((
sampler_type
==
WINED3DSTT_1D
&&
tex_transform
>
WINED3DTTFF_COUNT1
)
||
(
sampler_type
==
WINED3DSTT_2D
&&
tex_transform
>
WINED3DTTFF_COUNT2
)
||
(
sampler_type
==
WINED3DSTT_VOLUME
&&
tex_transform
>
WINED3DTTFF_COUNT3
))
tex_transform
|=
WINED3D_PSARGS_PROJECTED
;
else
WARN
(
"Application requested projected texture with unsuitable texture coordinates.
\n
"
);
}
args
->
tex_transform
|=
tex_transform
<<
i
*
WINED3D_PSARGS_TEXTRANSFORM_SHIFT
;
}
}
...
...
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