getProgramInfoLog method
dynamic
getProgramInfoLog(
- dynamic v0
Implementation
getProgramInfoLog(v0) {
var infoLen = calloc<Int32>();
glGetProgramiv(v0, INFO_LOG_LENGTH, infoLen);
int _len = infoLen.value;
calloc.free(infoLen);
String message = '';
if (infoLen.value > 0) {
final infoLog = calloc<Int8>(_len);
glGetProgramInfoLog(v0, _len, nullptr, infoLog);
message =
"\nError compiling shader:\n${infoLog.cast<Utf8>().toDartString()}";
calloc.free(infoLog);
return message;
} else {
return;
}
}