[Bf-blender-cvs] [fc2ce8495e8] master: Cleanup: GLShader: Use span and default constructor instead of vector(0)

Clément Foucault noreply at git.blender.org
Mon Sep 14 20:53:55 CEST 2020


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;
   }



More information about the Bf-blender-cvs mailing list