Closed rnconrad closed 5 years ago
The + 1 isn't needed as the length provided by glGetProgramiv includes the null terminator. The length expected by napi_create_string_utf8 is just the string length (without the null terminator), which is set by glGetProgramInfoLog.
+ 1
glGetProgramiv
napi_create_string_utf8
glGetProgramInfoLog
This change is
The
+ 1
isn't needed as the length provided byglGetProgramiv
includes the null terminator. The length expected bynapi_create_string_utf8
is just the string length (without the null terminator), which is set byglGetProgramInfoLog
.This change is