From 3c14b3936f03f737ad9c0bd10caf5ed86abb6408 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Fri, 2 Jan 2009 16:19:12 +0100 Subject: [PATCH] wined3d: Don't bother with the GLSL info log if nobody's looking. --- dlls/wined3d/glsl_shader.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c index f3933ff163d..eb169e0ef9c 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));