summaryrefslogtreecommitdiff
path: root/src/mbgl/programs/line_program.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-02-27 13:59:49 +0100
committerKonstantin Käfer <mail@kkaefer.com>2019-03-01 09:33:37 +0100
commitcd06b550dd95d6690daf0a34cd9733ae581ed5b9 (patch)
tree437a6ebb3d158a4ad00b813e95b66fafb749915f /src/mbgl/programs/line_program.hpp
parent55c7b86053816e74c3fd3c0595c1fa053970f959 (diff)
downloadqtlocation-mapboxgl-cd06b550dd95d6690daf0a34cd9733ae581ed5b9.tar.gz
[core] disallow subtyping of gl::Attributes<> and use type aliases instead
Diffstat (limited to 'src/mbgl/programs/line_program.hpp')
-rw-r--r--src/mbgl/programs/line_program.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mbgl/programs/line_program.hpp b/src/mbgl/programs/line_program.hpp
index 54553e29e7..089c2b2c07 100644
--- a/src/mbgl/programs/line_program.hpp
+++ b/src/mbgl/programs/line_program.hpp
@@ -29,10 +29,9 @@ MBGL_DEFINE_UNIFORM_VECTOR(float, 2, u_patternscale_b);
MBGL_DEFINE_UNIFORM_VECTOR(float, 2, u_gl_units_to_pixels);
} // namespace uniforms
-struct LineLayoutAttributes : gl::Attributes<
+using LineLayoutAttributes = gl::Attributes<
attributes::a_pos_normal,
- attributes::a_data<uint8_t, 4>>
-{};
+ attributes::a_data<uint8_t, 4>>;
class LineProgram : public Program<
shaders::line,