Henri Verbeet : wined3d: Don't bother with the GLSL info log if nobody' s looking.

Alexandre Julliard julliard at winehq.org
Sat Jan 3 09:11:20 CST 2009


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Fri Jan  2 16:19:12 2009 +0100

wined3d: Don't bother with the GLSL info log if nobody's looking.

---

 dlls/wined3d/glsl_shader.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c
index f3933ff..eb169e0 100644
--- a/dlls/wined3d/glsl_shader.c
+++ b/dlls/wined3d/glsl_shader.c
@@ -137,6 +137,8 @@ static void print_glsl_info_log(const WineD3D_GL_Info *gl_info, GLhandleARB obj)
         "WARNING: 0:2: extension 'GL_ARB_draw_buffers' is not supported\n"  /* MacOS ati      */
     };
 
+    if (!TRACE_ON(d3d_shader) && !FIXME_ON(d3d_shader)) return;
+
     GL_EXTCALL(glGetObjectParameterivARB(obj,
                GL_OBJECT_INFO_LOG_LENGTH_ARB,
                &infologLength));




More information about the wine-cvs mailing list