diff options
Diffstat (limited to 'src/mbgl/shader/linepattern_shader.cpp')
-rw-r--r-- | src/mbgl/shader/linepattern_shader.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mbgl/shader/linepattern_shader.cpp b/src/mbgl/shader/linepattern_shader.cpp index dc970a5661..2f3d93c03e 100644 --- a/src/mbgl/shader/linepattern_shader.cpp +++ b/src/mbgl/shader/linepattern_shader.cpp @@ -3,12 +3,14 @@ #include <mbgl/shader/linepattern.fragment.hpp> #include <mbgl/gl/gl.hpp> -using namespace mbgl; -using namespace shaders::linepattern; +namespace mbgl { LinepatternShader::LinepatternShader(gl::ObjectStore& store) - : Shader(::name, ::vertex, ::fragment, store) - , a_data(MBGL_CHECK_ERROR(glGetAttribLocation(getID(), "a_data"))) { + : Shader(shaders::linepattern::name, + shaders::linepattern::vertex, + shaders::linepattern::fragment, + store), + a_data(MBGL_CHECK_ERROR(glGetAttribLocation(getID(), "a_data"))) { } void LinepatternShader::bind(GLbyte* offset) { @@ -18,3 +20,5 @@ void LinepatternShader::bind(GLbyte* offset) { MBGL_CHECK_ERROR(glEnableVertexAttribArray(a_data)); MBGL_CHECK_ERROR(glVertexAttribPointer(a_data, 4, GL_UNSIGNED_BYTE, false, 8, offset + 4)); } + +} // namespace mbgl |