Shader tab fix.

This commit is contained in:
Joey de Vries
2017-05-28 08:56:30 +02:00
parent e84046aecc
commit d78752800f
3 changed files with 60 additions and 60 deletions

View File

@@ -144,10 +144,10 @@ private:
{
GLint success;
GLchar infoLog[1024];
if(type != "PROGRAM")
if (type != "PROGRAM")
{
glGetShaderiv(shader, GL_COMPILE_STATUS, &success);
if(!success)
if (!success)
{
glGetShaderInfoLog(shader, 1024, NULL, infoLog);
std::cout << "ERROR::SHADER_COMPILATION_ERROR of type: " << type << "\n" << infoLog << "\n -- --------------------------------------------------- -- " << std::endl;
@@ -156,7 +156,7 @@ private:
else
{
glGetProgramiv(shader, GL_LINK_STATUS, &success);
if(!success)
if (!success)
{
glGetProgramInfoLog(shader, 1024, NULL, infoLog);
std::cout << "ERROR::PROGRAM_LINKING_ERROR of type: " << type << "\n" << infoLog << "\n -- --------------------------------------------------- -- " << std::endl;

View File

@@ -100,10 +100,10 @@ private:
{
GLint success;
GLchar infoLog[1024];
if(type != "PROGRAM")
if (type != "PROGRAM")
{
glGetShaderiv(shader, GL_COMPILE_STATUS, &success);
if(!success)
if (!success)
{
glGetShaderInfoLog(shader, 1024, NULL, infoLog);
std::cout << "ERROR::SHADER_COMPILATION_ERROR of type: " << type << "\n" << infoLog << "\n -- --------------------------------------------------- -- " << std::endl;
@@ -112,7 +112,7 @@ private:
else
{
glGetProgramiv(shader, GL_LINK_STATUS, &success);
if(!success)
if (!success)
{
glGetProgramInfoLog(shader, 1024, NULL, infoLog);
std::cout << "ERROR::PROGRAM_LINKING_ERROR of type: " << type << "\n" << infoLog << "\n -- --------------------------------------------------- -- " << std::endl;