3b/cl-opengl — pull request #40 by woudshoo (2013-03-28 17:21:32+00:00)
Title: Check in a various query functions if the length of the resulting string...

When I call get-shader-info-log when no error or warning was created compiling the shader, I get a segfault with CCL on MacOSX. I did not really track it down, but I assume that the allocation of a zero length array returns something unsuitable, or that the OpenGL library on OSX does not handle it gracefully.

I have modified the get-shader-info-log function (and 2 other functions nearby that also return strings.) to check if the length is > 0 . If the length of the string is 0 the function will now return nil.

I am not sure if returning nil or "" is better. However for me at the moment it seem easier to discard a log entry when it return 'nil' instead of checking on the "" (empty string).

Kind regards,
Wim Oudshoorn.