From: Michal Krol Date: Thu, 19 May 2005 09:28:01 +0000 (+0000) Subject: fix info log grabbing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=216f89318ee455ec5e74f836184c1e55e8ec8a92;p=mesa.git fix info log grabbing --- diff --git a/src/mesa/shader/shaderobjects_3dlabs.c b/src/mesa/shader/shaderobjects_3dlabs.c index 709563d2e6c..f03f65d7016 100755 --- a/src/mesa/shader/shaderobjects_3dlabs.c +++ b/src/mesa/shader/shaderobjects_3dlabs.c @@ -631,10 +631,10 @@ _shader_Compile (struct gl2_shader_intf **intf) { impl->_obj.compile_status = GL_TRUE; } - else - { + if (info_log.text != NULL) impl->_obj._generic.info_log = _mesa_strdup (info_log.text); - } + else + impl->_obj._generic.info_log = _mesa_strdup (""); slang_info_log_destruct (&info_log); #endif }