Internal change.

PiperOrigin-RevId: 499496793
This commit is contained in:
Nikolay Chirkov 2023-01-04 08:52:03 -08:00 committed by Copybara-Service
parent a4ea606eac
commit 9a70af1464

View File

@ -68,8 +68,9 @@ void FillGpuBuffer(GLuint name, std::size_t size,
MP_ASSERT_OK(TFLITE_GPU_CALL_GL(glGetShaderiv, shader, GL_INFO_LOG_LENGTH, MP_ASSERT_OK(TFLITE_GPU_CALL_GL(glGetShaderiv, shader, GL_INFO_LOG_LENGTH,
&max_length)); &max_length));
std::vector<GLchar> error_log(max_length); std::vector<GLchar> error_log(max_length);
glGetShaderInfoLog(shader, max_length, &max_length, error_log.data()); MP_ASSERT_OK(TFLITE_GPU_CALL_GL(glGetShaderInfoLog, shader, max_length,
glDeleteShader(shader); &max_length, error_log.data()));
MP_EXPECT_OK(TFLITE_GPU_CALL_GL(glDeleteShader, shader));
FAIL() << error_log.data(); FAIL() << error_log.data();
return; return;
} }