From fe3f2d589ed71fb26a4cfd19777d39cf7ae369cf Mon Sep 17 00:00:00 2001 From: David Williams Date: Mon, 14 Apr 2014 21:08:05 +0200 Subject: [PATCH] Fixed uninitialized variables (was causing crash on OS X). --- examples/SmoothLOD/OpenGLWidget.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/examples/SmoothLOD/OpenGLWidget.cpp b/examples/SmoothLOD/OpenGLWidget.cpp index 7c706648..9b016303 100644 --- a/examples/SmoothLOD/OpenGLWidget.cpp +++ b/examples/SmoothLOD/OpenGLWidget.cpp @@ -7,6 +7,15 @@ using namespace std; OpenGLWidget::OpenGLWidget(QWidget *parent) :QGLWidget(parent) + ,m_uBeginIndex(0) + ,m_uEndIndex(0) + ,indexBuffer(0) + ,vertexBuffer(0) + + ,m_uBeginIndexLow(0) + ,m_uEndIndexLow(0) + ,indexBufferLow(0) + ,vertexBufferLow(0) ,m_xRotation(0) ,m_yRotation(0) {