wined3d: Silence a compiler warning.
diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c
index 5a2c7e7..0571e99 100644
--- a/dlls/wined3d/drawprim.c
+++ b/dlls/wined3d/drawprim.c
@@ -129,18 +129,19 @@
         glNormal3f(0, 0, 0);
     }
 
+    num_untracked_materials = context->num_untracked_materials;
     if (si->use_map & (1 << WINED3D_FFP_DIFFUSE))
     {
         element = &si->elements[WINED3D_FFP_DIFFUSE];
         diffuse = element->data + streamOffset[element->stream_idx];
+
+        if (num_untracked_materials && element->format_desc->format != WINED3DFMT_A8R8G8B8)
+            FIXME("Implement diffuse color tracking from %s\n", debug_d3dformat(element->format_desc->format));
     }
     else
     {
         glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
     }
-    num_untracked_materials = context->num_untracked_materials;
-    if (num_untracked_materials && element->format_desc->format != WINED3DFMT_A8R8G8B8)
-        FIXME("Implement diffuse color tracking from %s\n", debug_d3dformat(element->format_desc->format));
 
     if (si->use_map & (1 << WINED3D_FFP_SPECULAR))
     {