Henri Verbeet : wined3d: Printing a FIXME once only works if the relevant BOOL is static (LLVM/ Clang).

Alexandre Julliard julliard at winehq.org
Fri Oct 16 11:26:09 CDT 2009


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Fri Oct 16 10:38:43 2009 +0200

wined3d: Printing a FIXME once only works if the relevant BOOL is static (LLVM/Clang).

---

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

diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index e7723ee..194cb9e 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -1549,7 +1549,8 @@ static void state_lastpixel(DWORD state, IWineD3DStateBlockImpl *stateblock, str
 
 static void state_pointsprite_w(DWORD state, IWineD3DStateBlockImpl *stateblock, struct wined3d_context *context)
 {
-    BOOL warned = FALSE;
+    static BOOL warned;
+
     /* TODO: NV_POINT_SPRITE */
     if (!warned && stateblock->renderState[WINED3DRS_POINTSPRITEENABLE]) {
         /* A FIXME, not a WARN because point sprites should be software emulated if not supported by HW */
@@ -1561,7 +1562,8 @@ static void state_pointsprite_w(DWORD state, IWineD3DStateBlockImpl *stateblock,
 static void state_pointsprite(DWORD state, IWineD3DStateBlockImpl *stateblock, struct wined3d_context *context)
 {
     if (stateblock->renderState[WINED3DRS_POINTSPRITEENABLE]) {
-        BOOL warned = FALSE;
+        static BOOL warned;
+
         if(GL_LIMITS(point_sprite_units) < GL_LIMITS(textures) && !warned) {
             if(use_ps(stateblock) || stateblock->lowest_disabled_stage > GL_LIMITS(point_sprite_units)) {
                 FIXME("The app uses point sprite texture coordinates on more units than supported by the driver\n");




More information about the wine-cvs mailing list