Christian Costa : d3d8: Display FIXME only once in ValidatePixelShader and ValidateVertexShader.

Alexandre Julliard julliard at winehq.org
Mon Feb 22 08:46:52 CST 2010


Module: wine
Branch: master
Commit: 11a015070c986bd96d847587c56c869b27d6cbd1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=11a015070c986bd96d847587c56c869b27d6cbd1

Author: Christian Costa <titan.costa at wanadoo.fr>
Date:   Fri Feb 19 15:37:23 2010 +0100

d3d8: Display FIXME only once in ValidatePixelShader and ValidateVertexShader.

---

 dlls/d3d8/d3d8_main.c |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

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-cvs mailing list