diff --git a/src/AbstractShaderProgram.h b/src/AbstractShaderProgram.h index 07fd6fa4f..3fd055743 100644 --- a/src/AbstractShaderProgram.h +++ b/src/AbstractShaderProgram.h @@ -1207,12 +1207,12 @@ template<> struct Attribute { } }; -template struct Attribute>: public Attribute { - inline constexpr static GLint components() { return size; } +template struct Attribute>: public Attribute { + inline constexpr static GLint components() { return size_; } }; -template struct Attribute>: public Attribute { - inline constexpr static GLint components() { return size; } +template struct Attribute>: public Attribute { + inline constexpr static GLint components() { return size_; } }; #ifndef MAGNUM_TARGET_GLES @@ -1237,14 +1237,14 @@ template struct Attribute struct Attribute>: public Attribute { - inline constexpr static GLint components() { return size; } - inline constexpr static std::size_t vectorCount() { return size; } +template struct Attribute>: public Attribute { + inline constexpr static GLint components() { return size_; } + inline constexpr static std::size_t vectorCount() { return size_; } }; -template struct Attribute>: public Attribute { - inline constexpr static GLint components() { return size; } - inline constexpr static std::size_t vectorCount() { return size; } +template struct Attribute>: public Attribute { + inline constexpr static GLint components() { return size_; } + inline constexpr static std::size_t vectorCount() { return size_; } }; #endif