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);
|
glCompileShader(id);
|
||||||
|
|
||||||
// Query OpenGL for status.
|
// Query OpenGL for status.
|
||||||
GLint status;
|
GLint status;
|
||||||
glGetShaderiv(id, GL_COMPILE_STATUS, &status);
|
glGetShaderiv(id, GL_COMPILE_STATUS, &status);
|
||||||
if (status == GL_FALSE) {
|
if (status == GL_FALSE) {
|
||||||
GLchar buf[4096] = { '\0' };
|
GLchar buf[4096] = { '\0' };
|
||||||
glGetShaderInfoLog(id, sizeof(buf), NULL, buf);
|
glGetShaderInfoLog(id, sizeof(buf), NULL, buf);
|
||||||
m_error = std::string(buf);
|
m_error = std::string(buf);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OpenGLShaderProgram::attachShader(GLuint id)
|
bool OpenGLShaderProgram::attachShader(GLuint id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue