Fixed route end point rendering

This commit is contained in:
r.kuznetsov 2015-12-11 19:24:11 +03:00 committed by Daria Volvenkova
parent 85d4e65336
commit 48ed2527eb

View file

@ -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();