[PATCH] d3d8: Display FIXME only once in ValidatePixelShader and ValidateVertexShaderi (try 2) (resend)

Christian Costa titan.costa at wanadoo.fr
Fri Feb 19 08:37:23 CST 2010


This time always display the fixmes when traces are enabled
---

 dlls/d3d8/d3d8_main.c |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)
-------------- next part --------------
diff --git a/dlls/d3d8/d3d8_main.c b/dlls/d3d8/d3d8_main.c
index e5f44e7..c471049 100644
--- a/dlls/d3d8/d3d8_main.c
+++ b/dlls/d3d8/d3d8_main.c
@@ -79,7 +79,12 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
 HRESULT WINAPI ValidateVertexShader(DWORD* vertexshader, DWORD* reserved1, DWORD* reserved2, BOOL bool, DWORD* toto)
 {
   HRESULT ret;
-  FIXME("(%p %p %p %d %p): stub\n", vertexshader, reserved1, reserved2, bool, toto);
+  static BOOL warned;
+
+  if (TRACE_ON(d3d8) || !warned) {
+      FIXME("(%p %p %p %d %p): stub\n", vertexshader, reserved1, reserved2, bool, toto);
+      warned = TRUE;
+  }
 
   if (!vertexshader)
       return E_FAIL;
@@ -109,7 +114,12 @@ HRESULT WINAPI ValidateVertexShader(DWORD* vertexshader, DWORD* reserved1, DWORD
 HRESULT WINAPI ValidatePixelShader(DWORD* pixelshader, DWORD* reserved1, BOOL bool, DWORD* toto)
 {
   HRESULT ret;
-  FIXME("(%p %p %d %p): stub\n", pixelshader, reserved1, bool, toto);
+  static BOOL warned;
+
+  if (TRACE_ON(d3d8) || !warned) {
+      FIXME("(%p %p %d %p): stub\n", pixelshader, reserved1, bool, toto);
+      warned = TRUE;
+  }
 
   if (!pixelshader)
       return E_FAIL;


More information about the wine-patches mailing list