From 07bf3f9394c910a8c99ef6f8cc63519c6af0a60d Mon Sep 17 00:00:00 2001 From: Anakin Date: Wed, 7 Sep 2016 17:12:27 +0200 Subject: [PATCH] fix display bug, bugs: cannot move cube anymore --- MshViewer/Source/OpenGlController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MshViewer/Source/OpenGlController.cpp b/MshViewer/Source/OpenGlController.cpp index 799dacc..041a118 100644 --- a/MshViewer/Source/OpenGlController.cpp +++ b/MshViewer/Source/OpenGlController.cpp @@ -97,6 +97,7 @@ void OpenGLController::processInit() // generate stuff glGenVertexArrays(1, &gluiVertexArrayID); + glBindVertexArray(gluiVertexArrayID); glGenBuffers(1, &gluiVertexBufferID); glGenBuffers(1, &gluiUVBufferID); @@ -196,7 +197,6 @@ glm::mat4 OpenGLController::getMVPMatrix() m4x4Model = glm::rotate(m4x4Model, fRotationZ, glm::vec3(0, 0, 1)); return m4x4Projection * m4x4View * m4x4Model; - } GLFWwindow * OpenGLController::getWindow() const