small change so that ortho-plane dissappears when not needed

This commit is contained in:
Michal Marcinkowski
2015-02-23 22:53:40 -05:00
parent 0f1d8a6959
commit aae0516acd

View File

@@ -526,10 +526,12 @@ void RenderableFov::render(const RenderData& data){
glBindVertexArray(0);
//second vbo
glLineWidth(2.f);
glBindVertexArray(_vaoID[1]);
glDrawArrays(GL_LINE_LOOP, 0, _vtotal[1]);
glBindVertexArray(0);
if (_withinFOV){
glLineWidth(2.f);
glBindVertexArray(_vaoID[1]);
glDrawArrays(GL_LINE_LOOP, 0, _vtotal[1]);
glBindVertexArray(0);
}
/*glPointSize(5.f);
glBindVertexArray(_vaoID2);