From e7fc997f782ca4d0f2f86f027970f564d80ff802 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Thu, 21 Feb 2013 16:55:20 -0800 Subject: [PATCH] push and pop when drawing agent heads --- interface/src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interface/src/main.cpp b/interface/src/main.cpp index bdf6681c1a..0f96ceb951 100644 --- a/interface/src/main.cpp +++ b/interface/src/main.cpp @@ -586,10 +586,11 @@ void display(void) for(std::vector::iterator agent = agentList.agents.begin(); agent != agentList.agents.end(); agent++) { if (agent->linkedData != NULL) { Head *agentHead = (Head *)agent->linkedData; - + glPushMatrix(); glm::vec3 pos = agentHead->getPos(); glTranslatef(-pos.x, -pos.y, -pos.z); agentHead->render(0, &location[0]); + glPopMatrix(); } }