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
4aa00e8a
Commit
4aa00e8a
authored
Dec 10, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Rename texture_stage_op.color_correction to texture_stage_op.color_fixup.
This is consistent with other uses of struct color_fixup_desc.
parent
4aeaba0d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+1
-1
ati_fragment_shader.c
dlls/wined3d/ati_fragment_shader.c
+1
-1
utils.c
dlls/wined3d/utils.c
+3
-3
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/arb_program_shader.c
View file @
4aa00e8a
...
...
@@ -2811,7 +2811,7 @@ static GLuint gen_arbfp_ffp_shader(const struct ffp_frag_settings *settings, IWi
sprintf
(
colorcor_dst
,
"tex%u"
,
stage
);
gen_color_correction
(
&
buffer
,
colorcor_dst
,
WINED3DSP_WRITEMASK_ALL
,
"const.x"
,
"const.y"
,
settings
->
op
[
stage
].
color_
correction
);
settings
->
op
[
stage
].
color_
fixup
);
}
/* Generate the main shader */
...
...
dlls/wined3d/ati_fragment_shader.c
View file @
4aa00e8a
...
...
@@ -351,7 +351,7 @@ static GLuint gen_ati_shader(const struct texture_stage_op op[MAX_TEXTURES], con
if
(
op
[
stage
].
cop
!=
WINED3DTOP_BUMPENVMAP
&&
op
[
stage
].
cop
!=
WINED3DTOP_BUMPENVMAPLUMINANCE
)
continue
;
fixup
=
op
[
stage
].
color_
correction
;
fixup
=
op
[
stage
].
color_
fixup
;
if
(
fixup
.
x_source
!=
CHANNEL_SOURCE_X
||
fixup
.
y_source
!=
CHANNEL_SOURCE_Y
)
{
FIXME
(
"Swizzles not implemented
\n
"
);
...
...
dlls/wined3d/utils.c
View file @
4aa00e8a
...
...
@@ -1917,7 +1917,7 @@ void gen_ffp_frag_op(IWineD3DStateBlockImpl *stateblock, struct ffp_frag_setting
settings
->
op
[
i
].
aop
=
WINED3DTOP_DISABLE
;
settings
->
op
[
i
].
carg0
=
settings
->
op
[
i
].
carg1
=
settings
->
op
[
i
].
carg2
=
ARG_UNUSED
;
settings
->
op
[
i
].
aarg0
=
settings
->
op
[
i
].
aarg1
=
settings
->
op
[
i
].
aarg2
=
ARG_UNUSED
;
settings
->
op
[
i
].
color_
correction
=
COLOR_FIXUP_IDENTITY
;
settings
->
op
[
i
].
color_
fixup
=
COLOR_FIXUP_IDENTITY
;
settings
->
op
[
i
].
dst
=
resultreg
;
settings
->
op
[
i
].
tex_type
=
tex_1d
;
settings
->
op
[
i
].
projected
=
proj_none
;
...
...
@@ -1927,7 +1927,7 @@ void gen_ffp_frag_op(IWineD3DStateBlockImpl *stateblock, struct ffp_frag_setting
texture
=
(
IWineD3DBaseTextureImpl
*
)
stateblock
->
textures
[
i
];
if
(
texture
)
{
settings
->
op
[
i
].
color_
correction
=
texture
->
baseTexture
.
shader_color_fixup
;
settings
->
op
[
i
].
color_
fixup
=
texture
->
baseTexture
.
shader_color_fixup
;
if
(
ignore_textype
)
{
settings
->
op
[
i
].
tex_type
=
tex_1d
;
}
else
{
...
...
@@ -1950,7 +1950,7 @@ void gen_ffp_frag_op(IWineD3DStateBlockImpl *stateblock, struct ffp_frag_setting
}
}
}
else
{
settings
->
op
[
i
].
color_
correction
=
COLOR_FIXUP_IDENTITY
;
settings
->
op
[
i
].
color_
fixup
=
COLOR_FIXUP_IDENTITY
;
settings
->
op
[
i
].
tex_type
=
tex_1d
;
}
...
...
dlls/wined3d/wined3d_private.h
View file @
4aa00e8a
...
...
@@ -935,7 +935,7 @@ struct texture_stage_op
unsigned
aarg2
:
8
;
unsigned
aarg0
:
8
;
struct
color_fixup_desc
color_
correction
;
struct
color_fixup_desc
color_
fixup
;
unsigned
tex_type
:
3
;
unsigned
dst
:
1
;
unsigned
projected
:
2
;
...
...
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