wined3d: Silence a noisy fixme.

Jaime Rave jaimerave at ubuntu-co.com
Thu Jun 24 22:05:57 CDT 2010


---
 dlls/wined3d/glsl_shader.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c
index 89bc6ac..97db80e 100644
--- a/dlls/wined3d/glsl_shader.c
+++ b/dlls/wined3d/glsl_shader.c
@@ -692,6 +692,7 @@ static void shader_glsl_load_np2fixup_constants(
         UINT i;
         UINT fixup = prog->ps_args.np2_fixup;
         GLfloat np2fixup_constants[4 * MAX_FRAGMENT_SAMPLERS];
+        static int i;
 
         for (i = 0; fixup; fixup >>= 1, ++i) {
             const unsigned char idx = prog->np2Fixup_info->idx[i];
@@ -699,7 +700,9 @@ static void shader_glsl_load_np2fixup_constants(
             GLfloat* tex_dim = &np2fixup_constants[(idx >> 1) * 4];
 
             if (!tex) {
-                FIXME("Nonexistent texture is flagged for NP2 texcoord fixup\n");
+                if (!i++) {
+                    FIXME("Nonexistent texture is flagged for NP2 texcoord fixup\n");
+                }
                 continue;
             }
 
-- 
1.7.0.4


--=-G1CfpgrdSL3tGcbQOENI--




More information about the wine-patches mailing list