=?UTF-8?Q?Mikl=C3=B3s=20M=C3=A1t=C3=A9=20?=: wined3d: Warn only once about unsupported wrap state.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Apr 12 06:45:24 CDT 2016


Module: wine
Branch: stable
Commit: 73909356d76d72d09472a6bacb17f1e4b62be07d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=73909356d76d72d09472a6bacb17f1e4b62be07d

Author: Miklós Máté <mtmkls at gmail.com>
Date:   Mon Mar 14 13:40:57 2016 +0100

wined3d: Warn only once about unsupported wrap state.

Signed-off-by: Miklós Máté <mtmkls at gmail.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit e29aaca0185c71461ebd708c542a0e1afdef7201)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/wined3d/state.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index 91d6417..eab21d5 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -1571,7 +1571,9 @@ void state_pointsprite(struct wined3d_context *context, const struct wined3d_sta
 
 static void state_wrap(struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id)
 {
-    if (state->render_states[WINED3D_RS_WRAP0]
+    static unsigned int once;
+
+    if ((state->render_states[WINED3D_RS_WRAP0]
             || state->render_states[WINED3D_RS_WRAP1]
             || state->render_states[WINED3D_RS_WRAP2]
             || state->render_states[WINED3D_RS_WRAP3]
@@ -1587,6 +1589,7 @@ static void state_wrap(struct wined3d_context *context, const struct wined3d_sta
             || state->render_states[WINED3D_RS_WRAP13]
             || state->render_states[WINED3D_RS_WRAP14]
             || state->render_states[WINED3D_RS_WRAP15])
+            && !once++)
         FIXME("(WINED3D_RS_WRAP0) Texture wrapping not yet supported.\n");
 }
 




More information about the wine-cvs mailing list