gldtGetProgramInfoLog function

String gldtGetProgramInfoLog(
  1. int program,
  2. int bufSize
)

Implementation

String gldtGetProgramInfoLog(int program, int bufSize) {
  String result;
  var infoLog = calloc<Int8>(bufSize);
  var length = calloc<Uint32>();
  glGetProgramInfoLog(program, bufSize, length, infoLog);
  result = infoLog.cast<Utf8>().toDartString();
  calloc.free(infoLog);
  calloc.free(length);
  return result;
}