diff --git a/MshViewer/Source/OpenGlController.cpp b/MshViewer/Source/OpenGlController.cpp index 6d05476..ea7e8f1 100644 --- a/MshViewer/Source/OpenGlController.cpp +++ b/MshViewer/Source/OpenGlController.cpp @@ -247,7 +247,7 @@ void OpenGLController::updateScene() glVertexAttribPointer(1, 2, GL_FLOAT, GL_FALSE, 0, 0); //draw objects - glDrawArrays(GL_TRIANGLES, 0, ui32MeshSize * 3); + glDrawArrays(GL_TRIANGLES, 0, ui32MeshSize); //close attributes glDisableVertexAttribArray(0); diff --git a/README.md b/README.md index 24d0fef..dce0f7c 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,6 @@ Feel free to use my code the way you like. But remember i used some public libra licence, too. ### To Do -- sphere isn't displayed correctly, - bones are not triangulated, - nulls are not triangulated, - crash when loading trooper, diff --git a/Release/MshViewer.exe b/Release/MshViewer.exe index 88a65c0..22943e7 100644 Binary files a/Release/MshViewer.exe and b/Release/MshViewer.exe differ