[PATCH] wined3d: warn only once about unsupported wrap state
Miklós Máté
mtmkls at gmail.com
Sun Mar 13 10:13:25 CDT 2016
Fixes performance issues in Deus Ex Invisible War due to warning spam.
Signed-off-by: Miklós Máté <mtmkls at gmail.com>
---
dlls/wined3d/state.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index 91d6417..9cd05a9 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -1571,6 +1571,11 @@ 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)
{
+ static BOOL warned = FALSE;
+
+ if (warned)
+ return;
+
if (state->render_states[WINED3D_RS_WRAP0]
|| state->render_states[WINED3D_RS_WRAP1]
|| state->render_states[WINED3D_RS_WRAP2]
@@ -1586,8 +1591,10 @@ static void state_wrap(struct wined3d_context *context, const struct wined3d_sta
|| state->render_states[WINED3D_RS_WRAP12]
|| state->render_states[WINED3D_RS_WRAP13]
|| state->render_states[WINED3D_RS_WRAP14]
- || state->render_states[WINED3D_RS_WRAP15])
+ || state->render_states[WINED3D_RS_WRAP15]) {
FIXME("(WINED3D_RS_WRAP0) Texture wrapping not yet supported.\n");
+ warned = TRUE;
+ }
}
static void state_msaa_w(struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id)
--
2.7.0
More information about the wine-patches
mailing list