stephanh42/RacketGL — Issue #2: gl calls failing with malloc errors
Author: sf17k
Created: 2012-02-21 14:47:39+00:00
State: open

glGetShaderInfoLog and glGetProgramInfoLog were giving me the error "malloc: no size given".

I've traced the issue to problems in gl.spec.FIXED. Here is an example of a bad spec. The "infoLog" param specifies "length" when it should be using "bufSize":

...
GetShaderInfoLog(shader, bufSize, length, infoLog)
return	void
param	shader	UInt32 in value
param	bufSize	SizeI in value
param	length	SizeI out array [1]
param	infoLog	Char out array [length]
category	VERSION_2_0
dlflags	notlistable
version	2.0
extension
glxsingle	?
glxflags	ignore
offset	?
...

There are several other functions with similar problems.