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
fdd4df44
Commit
fdd4df44
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: Fix some flag checks.
parent
70f4b2d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+4
-4
No files found.
dlls/wined3d/arb_program_shader.c
View file @
fdd4df44
...
...
@@ -2134,7 +2134,7 @@ static void pshader_hw_texm3x2tex(const struct wined3d_shader_instruction *ins)
shader_arb_get_src_param
(
ins
,
&
ins
->
src
[
0
],
0
,
src0_name
);
shader_addline
(
buffer
,
"DP3 %s.y, fragment.texcoord[%u], %s;
\n
"
,
dst_reg
,
reg
,
src0_name
);
flags
=
reg
<
MAX_TEXTURES
?
priv
->
cur_ps_args
->
super
.
tex_transform
>>
reg
*
WINED3D_PSARGS_TEXTRANSFORM_SHIFT
:
0
;
shader_hw_sample
(
ins
,
reg
,
dst_str
,
dst_reg
,
flags
&
WINED3D
TTFF
_PROJECTED
?
TEX_PROJ
:
0
,
NULL
,
NULL
);
shader_hw_sample
(
ins
,
reg
,
dst_str
,
dst_reg
,
flags
&
WINED3D
_PSARGS
_PROJECTED
?
TEX_PROJ
:
0
,
NULL
,
NULL
);
}
static
void
pshader_hw_texm3x3pad
(
const
struct
wined3d_shader_instruction
*
ins
)
...
...
@@ -2177,7 +2177,7 @@ static void pshader_hw_texm3x3tex(const struct wined3d_shader_instruction *ins)
/* Sample the texture using the calculated coordinates */
shader_arb_get_dst_param
(
ins
,
&
ins
->
dst
[
0
],
dst_str
);
flags
=
reg
<
MAX_TEXTURES
?
priv
->
cur_ps_args
->
super
.
tex_transform
>>
reg
*
WINED3D_PSARGS_TEXTRANSFORM_SHIFT
:
0
;
shader_hw_sample
(
ins
,
reg
,
dst_str
,
dst_name
,
flags
&
WINED3D
TTFF
_PROJECTED
?
TEX_PROJ
:
0
,
NULL
,
NULL
);
shader_hw_sample
(
ins
,
reg
,
dst_str
,
dst_name
,
flags
&
WINED3D
_PSARGS
_PROJECTED
?
TEX_PROJ
:
0
,
NULL
,
NULL
);
tex_mx
->
current_row
=
0
;
}
...
...
@@ -2218,7 +2218,7 @@ static void pshader_hw_texm3x3vspec(const struct wined3d_shader_instruction *ins
/* Sample the texture using the calculated coordinates */
shader_arb_get_dst_param
(
ins
,
&
ins
->
dst
[
0
],
dst_str
);
flags
=
reg
<
MAX_TEXTURES
?
priv
->
cur_ps_args
->
super
.
tex_transform
>>
reg
*
WINED3D_PSARGS_TEXTRANSFORM_SHIFT
:
0
;
shader_hw_sample
(
ins
,
reg
,
dst_str
,
dst_reg
,
flags
&
WINED3D
TTFF
_PROJECTED
?
TEX_PROJ
:
0
,
NULL
,
NULL
);
shader_hw_sample
(
ins
,
reg
,
dst_str
,
dst_reg
,
flags
&
WINED3D
_PSARGS
_PROJECTED
?
TEX_PROJ
:
0
,
NULL
,
NULL
);
tex_mx
->
current_row
=
0
;
}
...
...
@@ -2259,7 +2259,7 @@ static void pshader_hw_texm3x3spec(const struct wined3d_shader_instruction *ins)
/* Sample the texture using the calculated coordinates */
shader_arb_get_dst_param
(
ins
,
&
ins
->
dst
[
0
],
dst_str
);
flags
=
reg
<
MAX_TEXTURES
?
priv
->
cur_ps_args
->
super
.
tex_transform
>>
reg
*
WINED3D_PSARGS_TEXTRANSFORM_SHIFT
:
0
;
shader_hw_sample
(
ins
,
reg
,
dst_str
,
dst_reg
,
flags
&
WINED3D
TTFF
_PROJECTED
?
TEX_PROJ
:
0
,
NULL
,
NULL
);
shader_hw_sample
(
ins
,
reg
,
dst_str
,
dst_reg
,
flags
&
WINED3D
_PSARGS
_PROJECTED
?
TEX_PROJ
:
0
,
NULL
,
NULL
);
tex_mx
->
current_row
=
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