Stefan Dösinger : wined3d: Silence a compiler warning.

Alexandre Julliard julliard at winehq.org
Tue Sep 8 08:54:14 CDT 2009


Module: wine
Branch: master
Commit: 65f3d54da52784a07552adc7cb3dce272bc5d5e9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=65f3d54da52784a07552adc7cb3dce272bc5d5e9

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Sun Aug 30 22:35:00 2009 +0200

wined3d: Silence a compiler warning.

---

 dlls/wined3d/drawprim.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

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 @@ static void drawStridedSlow(IWineD3DDevice *iface, const struct wined3d_context
         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))
     {




More information about the wine-cvs mailing list