[PATCH] wined3d: Reduce console flood with an Ogre3D Game
Detlef Riekenberg
wine.dev at web.de
Sun Jan 22 12:44:50 CST 2012
---
dlls/wined3d/resource.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/resource.c b/dlls/wined3d/resource.c
index da631d6..08ad5fb 100644
--- a/dlls/wined3d/resource.c
+++ b/dlls/wined3d/resource.c
@@ -72,8 +72,13 @@ static void resource_check_usage(DWORD usage)
| WINED3DUSAGE_STATICDECL
| WINED3DUSAGE_OVERLAY;
- if (usage & ~handled)
+ static DWORD reported_once;
+
+ if (usage & ~(handled | reported_once))
+ {
+ reported_once |= (usage & ~handled);
FIXME("Unhandled usage flags %#x.\n", usage & ~handled);
+ }
}
HRESULT resource_init(struct wined3d_resource *resource, struct wined3d_device *device,
--
1.7.5.4
More information about the wine-patches
mailing list