Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/gpu/opengl/gl_shader.cc')
-rw-r--r--source/blender/gpu/opengl/gl_shader.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/gpu/opengl/gl_shader.cc b/source/blender/gpu/opengl/gl_shader.cc
index 9af9bf96503..193e4ee8a70 100644
--- a/source/blender/gpu/opengl/gl_shader.cc
+++ b/source/blender/gpu/opengl/gl_shader.cc
@@ -134,13 +134,13 @@ GLuint GLShader::create_shader_stage(GLenum gl_stage, MutableSpan<const char *>
if (log[0] != '\0') {
switch (gl_stage) {
case GL_VERTEX_SHADER:
- this->print_errors(sources, log, "VertShader");
+ this->print_log(sources, log, "VertShader", !status);
break;
case GL_GEOMETRY_SHADER:
- this->print_errors(sources, log, "GeomShader");
+ this->print_log(sources, log, "GeomShader", !status);
break;
case GL_FRAGMENT_SHADER:
- this->print_errors(sources, log, "FragShader");
+ this->print_log(sources, log, "FragShader", !status);
break;
}
}
@@ -186,7 +186,7 @@ bool GLShader::finalize(void)
char log[5000];
glGetProgramInfoLog(shader_program_, sizeof(log), NULL, log);
Span<const char *> sources;
- this->print_errors(sources, log, "Linking");
+ this->print_log(sources, log, "Linking", true);
return false;
}