From 69421f9187fe8de7fa23f6f15bb664befb8b0c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 22 Oct 2012 15:34:01 +0200 Subject: [PATCH] Provide default constructor for AbstractShaderProgram::Attribute. Fixes compilation with clang. --- src/AbstractShaderProgram.h | 2 ++ 1 file changed, 2 insertions(+) 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 */ };