From cb4274bb1cbd0c138b22ac1ca14bada7be588564 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 26 Sep 2022 14:12:47 +0200 Subject: [PATCH] source/GfxDriver/OpenGL/OpenGLShaderProgram.cpp: Indent fix. --- .../GfxDriver/OpenGL/OpenGLShaderProgram.cpp | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/source/GfxDriver/OpenGL/OpenGLShaderProgram.cpp b/source/GfxDriver/OpenGL/OpenGLShaderProgram.cpp index f5f7111..829bf8b 100644 --- a/source/GfxDriver/OpenGL/OpenGLShaderProgram.cpp +++ b/source/GfxDriver/OpenGL/OpenGLShaderProgram.cpp @@ -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)