1
0
Fork 0

source/GfxDriver/OpenGL/OpenGLShaderProgram.cpp: Indent fix.

This commit is contained in:
Henrik Hautakoski 2022-09-26 14:12:47 +02:00
parent b6446e129b
commit cb4274bb1c

View file

@ -151,16 +151,16 @@ bool OpenGLShaderProgram::compileShader(GLuint id)
{
glCompileShader(id);
// Query OpenGL for status.
GLint status;
glGetShaderiv(id, GL_COMPILE_STATUS, &status);
if (status == GL_FALSE) {
GLchar buf[4096] = { '\0' };
glGetShaderInfoLog(id, sizeof(buf), NULL, buf);
m_error = std::string(buf);
return false;
}
return true;
// Query OpenGL for status.
GLint status;
glGetShaderiv(id, GL_COMPILE_STATUS, &status);
if (status == GL_FALSE) {
GLchar buf[4096] = { '\0' };
glGetShaderInfoLog(id, sizeof(buf), NULL, buf);
m_error = std::string(buf);
return false;
}
return true;
}
bool OpenGLShaderProgram::attachShader(GLuint id)