gldtGetShaderInfoLog function

String gldtGetShaderInfoLog(
  1. int shader,
  2. int bufSize
)

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