[PATCH 19/21] dlls/wined3d: Use FIXME_ONCE

David Kahurani k.kahurani at gmail.com
Fri Oct 15 10:35:50 CDT 2021


introduce FIXME_ONCE

Signed-off-by: David Kahurani <k.kahurani at gmail.com>
---
 dlls/wined3d/state.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index 8316269..c280f46 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -2164,11 +2164,9 @@ static void state_ckeyblend(struct wined3d_context *context, const struct wined3
 
 static void state_swvp(struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id)
 {
-    static int once;
     if (state->render_states[WINED3D_RS_SOFTWAREVERTEXPROCESSING])
     {
-        if (!once++)
-            FIXME("Software vertex processing not implemented.\n");
+        FIXME_ONCE("Software vertex processing not implemented.\n");
     }
 }
 
-- 
2.33.0




More information about the wine-devel mailing list