wined3d: Rename texture_stage_op.color_correction to texture_stage_op.color_fixup.
authorHenri Verbeet <hverbeet@codeweavers.com>
Wed, 10 Dec 2008 09:04:40 +0000 (10:04 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 10 Dec 2008 09:50:24 +0000 (10:50 +0100)
This is consistent with other uses of struct color_fixup_desc.

dlls/wined3d/arb_program_shader.c
dlls/wined3d/ati_fragment_shader.c
dlls/wined3d/utils.c
dlls/wined3d/wined3d_private.h

index 5eb853973f7e7010d46d7df1a6a86e693cef1efd..1e7e51a9f22053e7235c50a2f6c2c22b9c12c0bd 100644 (file)
@@ -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 */
index f88de9e24125a2b58b55240fa2797ac50d430222..88dd0a578f2ae1bca263b06f1b5c1635b0b0e4e8 100644 (file)
@@ -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");
index fd4f4ee19872646febcabefea9d6240123214a55..0eb5337128ae25e313858cb2e44c6077797e9102 100644 (file)
@@ -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;
         }
 
index 619baecb1c2c16ccb80c19dc69b8bbc809ba4444..f8e2a8c09bf879647513c9ce61b211330dbc4043 100644 (file)
@@ -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;