Use initializer list copy constructor instead of per-element copying for shader source list in ShaderEffect constructor

This commit is contained in:
Alexander Szpakowski
2012-12-23 00:29:23 -04:00
parent 83204c5dc5
commit 3047321e71
2 changed files with 6 additions and 10 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ private:
GLuint createShader(const ShaderSource &source);
void createProgram(const std::vector<GLuint> &shaders);
std::vector<ShaderSource> _shaders; // all shader code attached to this ShaderEffect
std::vector<ShaderSource> _shadersources; // list of all shader code attached to this ShaderEffect
GLuint _program; // volatile