source/GfxDriver/OpenGL/OpenGLShaderProgram.cpp: Indent fix.
This commit is contained in:
parent
b6446e129b
commit
cb4274bb1c
1 changed files with 10 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue