Henri Verbeet : wined3d: Don't trace the shader if nobody's looking.
Alexandre Julliard
julliard at winehq.org
Thu Dec 11 07:50:44 CST 2008
Module: wine
Branch: master
Commit: 441f515d0830b916ee01a2c7c223ed903573d7a1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=441f515d0830b916ee01a2c7c223ed903573d7a1
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Dec 11 11:52:37 2008 +0100
wined3d: Don't trace the shader if nobody's looking.
---
dlls/wined3d/pixelshader.c | 2 +-
dlls/wined3d/vertexshader.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/pixelshader.c b/dlls/wined3d/pixelshader.c
index 659a9b4..c5f3c3e 100644
--- a/dlls/wined3d/pixelshader.c
+++ b/dlls/wined3d/pixelshader.c
@@ -323,7 +323,7 @@ static HRESULT WINAPI IWineD3DPixelShaderImpl_SetFunction(IWineD3DPixelShader *i
TRACE("(%p) : pFunction %p\n", iface, pFunction);
/* First pass: trace shader */
- shader_trace_init(pFunction, This->baseShader.shader_ins);
+ if (TRACE_ON(d3d_shader)) shader_trace_init(pFunction, This->baseShader.shader_ins);
/* Initialize immediate constant lists */
list_init(&This->baseShader.constantsF);
diff --git a/dlls/wined3d/vertexshader.c b/dlls/wined3d/vertexshader.c
index 434fa05..529fe7a 100644
--- a/dlls/wined3d/vertexshader.c
+++ b/dlls/wined3d/vertexshader.c
@@ -435,7 +435,7 @@ static HRESULT WINAPI IWineD3DVertexShaderImpl_SetFunction(IWineD3DVertexShader
TRACE("(%p) : pFunction %p\n", iface, pFunction);
/* First pass: trace shader */
- shader_trace_init(pFunction, This->baseShader.shader_ins);
+ if (TRACE_ON(d3d_shader)) shader_trace_init(pFunction, This->baseShader.shader_ins);
/* Initialize immediate constant lists */
list_init(&This->baseShader.constantsF);
More information about the wine-cvs
mailing list