[PATCH] wined3d: Display state in state_undefined (try 3)
Christian Costa
titan.costa at wanadoo.fr
Tue Feb 16 08:26:06 CST 2010
Only show the error message for unexpected state values ie non zero.
---
dlls/wined3d/state.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
-------------- next part --------------
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index 5efe069..cf5275a 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -57,7 +57,9 @@ static void state_nogl(DWORD state, IWineD3DStateBlockImpl *stateblock, struct w
static void state_undefined(DWORD state, IWineD3DStateBlockImpl *stateblock, struct wined3d_context *context)
{
- ERR("Undefined state.\n");
+ /* State must be 0 so only show an error message for other states */
+ if (state)
+ ERR("Undefined state %s\n", debug_d3dstate(state));
}
static void state_fillmode(DWORD state, IWineD3DStateBlockImpl *stateblock, struct wined3d_context *context)
More information about the wine-patches
mailing list