Bump NDK version to 27.0.12077973, replace ALooper_pollAll with ALooper_pollOnce (#2663)
This commit is contained in:
@@ -92,10 +92,10 @@ void checkLinkStatus(GLuint program) {
|
||||
if (isLinked == GL_FALSE) {
|
||||
GLint maxLength = 0;
|
||||
glGetProgramiv(program, GL_INFO_LOG_LENGTH, &maxLength);
|
||||
GLchar infoLog[maxLength];
|
||||
glGetProgramInfoLog(program, maxLength, &maxLength, &infoLog[0]);
|
||||
__android_log_write(ANDROID_LOG_ERROR, LOG_TAG, &infoLog[0]);
|
||||
throw Error(infoLog);
|
||||
std::vector<GLchar> infoLog(maxLength);
|
||||
glGetProgramInfoLog(program, maxLength, &maxLength, infoLog.data());
|
||||
__android_log_write(ANDROID_LOG_ERROR, LOG_TAG, infoLog.data());
|
||||
throw Error(std::string(infoLog.begin(), infoLog.end()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -107,10 +107,10 @@ void checkCompileStatus(GLuint shader) {
|
||||
glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &maxLength);
|
||||
|
||||
// The maxLength includes the NULL character
|
||||
GLchar errorLog[maxLength];
|
||||
glGetShaderInfoLog(shader, maxLength, &maxLength, &errorLog[0]);
|
||||
__android_log_write(ANDROID_LOG_ERROR, LOG_TAG, &errorLog[0]);
|
||||
throw Error(errorLog);
|
||||
std::vector<GLchar> errorLog(maxLength);
|
||||
glGetShaderInfoLog(shader, maxLength, &maxLength, errorLog.data());
|
||||
__android_log_write(ANDROID_LOG_ERROR, LOG_TAG, errorLog.data());
|
||||
throw Error(std::string(errorLog.begin(), errorLog.end()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user