some fixes
This commit is contained in:
parent
9b3d12dfeb
commit
3118118953
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue