some fixes

This commit is contained in:
Anakin 2016-12-02 13:00:38 +01:00
parent 9b3d12dfeb
commit 3118118953
2 changed files with 38 additions and 34 deletions

View File

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

View File

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