Commit: fc2ce8495e869e2527f9bb2e2618fa02aa67d72e Author: Clément Foucault Date: Mon Sep 14 19:56:08 2020 +0200 Branches: master https://developer.blender.org/rBfc2ce8495e869e2527f9bb2e2618fa02aa67d72e
Cleanup: GLShader: Use span and default constructor instead of vector(0) =================================================================== M source/blender/gpu/opengl/gl_shader.cc =================================================================== diff --git a/source/blender/gpu/opengl/gl_shader.cc b/source/blender/gpu/opengl/gl_shader.cc index efe656bb387..47bb8ed1bd7 100644 --- a/source/blender/gpu/opengl/gl_shader.cc +++ b/source/blender/gpu/opengl/gl_shader.cc @@ -185,7 +185,7 @@ bool GLShader::finalize(void) if (!status) { char log[5000]; glGetProgramInfoLog(shader_program_, sizeof(log), NULL, log); - Vector<const char *> sources(0); + Span<const char *> sources; this->print_errors(sources, log, "Linking"); return false; } _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs