diff options
author | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2015-12-11 19:24:11 +0300 |
---|---|---|
committer | Daria Volvenkova <d.volvenkova@corp.mail.ru> | 2015-12-29 16:42:34 +0300 |
commit | 48ed2527eb11e4156b9ad3c5e92a23831a1b6e45 (patch) | |
tree | 551ba6b226a169eaada9c3f21265166eb851602b /drape_frontend/arrow3d.cpp | |
parent | 85d4e65336e03ed2268148a15572bf2e2eec1feb (diff) |
Fixed route end point rendering
Diffstat (limited to 'drape_frontend/arrow3d.cpp')
-rw-r--r-- | drape_frontend/arrow3d.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drape_frontend/arrow3d.cpp b/drape_frontend/arrow3d.cpp index 7778fbf7cc..5640d414dd 100644 --- a/drape_frontend/arrow3d.cpp +++ b/drape_frontend/arrow3d.cpp @@ -107,12 +107,14 @@ void Arrow3d::Build(ref_ptr<dp::GpuProgram> prg) GLFunctions::glBufferData(gl_const::GLArrayBuffer, m_normals.size() * sizeof(m_normals[0]), m_normals.data(), gl_const::GLStaticDraw); - GLFunctions::glBindVertexArray(0); GLFunctions::glBindBuffer(0, gl_const::GLArrayBuffer); } void Arrow3d::Render(ScreenBase const & screen, ref_ptr<dp::GpuProgramManager> mng) { + // Unbind current VAO, because glVertexAttributePointer and glEnableVertexAttribute can affect it. + GLFunctions::glBindVertexArray(0); + ref_ptr<dp::GpuProgram> prg = mng->GetProgram(gpu::ARROW_3D_PROGRAM); prg->Bind(); |