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 709563d2e6c634eca03687d5786bbafd7c135f3e..f03f65d7016bddab366a5b3efc14ec0715af6f2f 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