Commit 31181189 authored by Anakin's avatar Anakin
Browse files

some fixes

parent 9b3d12df
......@@ -326,6 +326,8 @@ void OpenGLController::updateScene()
// tell sampler to use texture unit 0
glUniform1i(gluiSamplerID, 0);
if (vModels != NULL)
{
int instanceOffset(0);
for (unsigned int modelIndex = 0; modelIndex < vModels->size(); modelIndex++)
......@@ -371,7 +373,7 @@ void OpenGLController::updateScene()
instanceOffset += vertexCount;
}
}
}
glfwSwapBuffers(pWindow);
glfwPollEvents();
}
......
......@@ -17,7 +17,9 @@ int main(int argc, char** argv)
else
scene = OpenGLController::getInstance();
#ifdef _DEBUG
scene->loadMsh("..\\Release\\Msh\\quadPoly.msh");
#endif // DEBUG
do {
scene->updateScene();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment