diff options
Diffstat (limited to 'src/mesa')
-rwxr-xr-x | src/mesa/shader/shaderobjects_3dlabs.c | 6 |
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
}
|