fix info log grabbing
authorMichal Krol <mjkrol@gmail.org>
Thu, 19 May 2005 09:28:01 +0000 (09:28 +0000)
committerMichal Krol <mjkrol@gmail.org>
Thu, 19 May 2005 09:28:01 +0000 (09:28 +0000)
src/mesa/shader/shaderobjects_3dlabs.c

index 709563d..f03f65d 100755 (executable)
@@ -631,10 +631,10 @@ _shader_Compile (struct gl2_shader_intf **intf)
        {\r
                impl->_obj.compile_status = GL_TRUE;\r
        }\r
-       else\r
-       {\r
+       if (info_log.text != NULL)\r
                impl->_obj._generic.info_log = _mesa_strdup (info_log.text);\r
-       }\r
+       else\r
+               impl->_obj._generic.info_log = _mesa_strdup ("");\r
        slang_info_log_destruct (&info_log);\r
 #endif\r
 }\r