From 3af886450f2797563ded14edba64d3228dcbca83 Mon Sep 17 00:00:00 2001 From: Anakin Date: Tue, 1 Nov 2016 17:07:07 +0100 Subject: [PATCH] special thanks to john_connor for finding the display problem --- 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 95185f7..316cb2c 100644 --- a/MshViewer/Source/OpenGlController.cpp +++ b/MshViewer/Source/OpenGlController.cpp @@ -348,7 +348,7 @@ void OpenGLController::loadMsh(const char * path) glBindBuffer(GL_ARRAY_BUFFER, gluiVertexBufferID); glBufferData( GL_ARRAY_BUFFER, - sizeof(tempBufferData) * tempBufferData.size(), + sizeof(Vertex) * tempBufferData.size(), tempBufferData.data(), GL_STATIC_DRAW );