diff --git a/src/AbstractShaderProgram.h b/src/AbstractShaderProgram.h index 5ec2aad47..fdce72366 100644 --- a/src/AbstractShaderProgram.h +++ b/src/AbstractShaderProgram.h @@ -237,6 +237,8 @@ class MAGNUM_EXPORT AbstractShaderProgram { * @todo Support for BGRA attribute type (OpenGL 3.2, @extension{ARB,vertex_array_bgra}) */ template struct Attribute { + inline constexpr Attribute() = default; + static const GLuint Location = i; /**< Location to which the attribute is bound */ typedef T Type; /**< %Attribute type */ };