fix info log grabbing

This commit is contained in:
Michal Krol 2005-05-19 09:28:01 +00:00
parent e3cdbca63f
commit 216f89318e

View file

@ -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
}