gl_engine: fixed mismatched malloc/free calls.

This commit is contained in:
Hermet Park 2022-10-02 19:00:15 +09:00
parent 2fd9bb76b6
commit 353e8316c2

View file

@ -87,7 +87,7 @@ uint32_t GlShader::complileShader(uint32_t type, char* shaderSrc)
auto infoLog = static_cast<char*>(malloc(sizeof(char)*infoLen));
glGetShaderInfoLog(shader, infoLen, NULL, infoLog);
TVGERR("GL_ENGINE", "Error compiling shader: %s", infoLog);
delete[] infoLog;
free(infoLog);
}
glDeleteShader(shader);
}