[PATCH] Only display Missing vbo streams fixme once

Ben Mayhew ben-dev at gmx.net
Fri May 9 13:57:26 CDT 2008


---
 dlls/wined3d/drawprim.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c
index e8b39f8..4a5cc22 100644
--- a/dlls/wined3d/drawprim.c
+++ b/dlls/wined3d/drawprim.c
@@ -207,8 +207,12 @@ void primitiveDeclarationConvertToStridedData(
                 else if(*fixup && !useVertexShaderFunction &&
                        (element->Usage == WINED3DDECLUSAGE_COLOR ||
                         element->Usage == WINED3DDECLUSAGE_POSITIONT)) {
-                    /* This may be bad with the fixed function pipeline */
-                    FIXME("Missing vbo streams with unfixed colors or transformed position, expect problems\n");
+                    static BOOL warned = FALSE;
+                    if(!warned) {
+                    	/* This may be bad with the fixed function pipeline */
+                    	FIXME("Missing vbo streams with unfixed colors or transformed position, expect problems\n");
+                        warned = TRUE;
+                    }
                 }
             }
         }
-- 
1.5.4.3


--------------030808060102070603070600--



More information about the wine-patches mailing list