gldtGetShaderInfoLog function
Implementation
String gldtGetShaderInfoLog(int shader, int bufSize) {
String result;
var infoLog = calloc<Int8>(bufSize);
var length = calloc<Uint32>();
glGetShaderInfoLog(shader, bufSize, length, infoLog);
result = infoLog.cast<Utf8>().toDartString();
calloc.free(infoLog);
calloc.free(length);
return result;
}