summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorMichal Krol <mjkrol@gmail.org>2005-05-19 09:28:01 +0000
committerMichal Krol <mjkrol@gmail.org>2005-05-19 09:28:01 +0000
commit216f89318ee455ec5e74f836184c1e55e8ec8a92 (patch)
tree39a7c4082a875a56883b3b878111cf5362b6d532 /src/mesa
parente3cdbca63f93420043001857eee2c8b333588fc9 (diff)
fix info log grabbing
Diffstat (limited to 'src/mesa')
-rwxr-xr-xsrc/mesa/shader/shaderobjects_3dlabs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/shader/shaderobjects_3dlabs.c b/src/mesa/shader/shaderobjects_3dlabs.c
index 709563d2e6..f03f65d701 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
}