Fri, 18 Oct 2013 17:57:42 +0300
Fixed: LDForge would sometimes crash over unitialized data in the GL renderer. This crash sure eluded me for a while. Turned out zoomToFit(), which uses m_width and m_height is called before resizeGL() which initializes these variables. This data is used in an operator new[] call.
485 | 1 | TARGET = ../ldforge |
2 | DEPENDPATH += . | |
3 | INCLUDEPATH += . | |
4 | RC_FILE = ../ldforge.rc | |
5 | RESOURCES = ../ldforge.qrc | |
6 | RCC_DIR = ./build/ | |
7 | OBJECTS_DIR = ./build/ | |
8 | MOC_DIR = ./build/ | |
9 | RCC_DIR = ./build/ | |
10 | SOURCES = *.cpp | |
11 | HEADERS = *.h | |
12 | FORMS = ui/*.ui | |
13 | QT += opengl network | |
14 | QMAKE_CXXFLAGS += -std=c++0x | |
15 | ||
16 | unix { | |
17 | LIBS += -lGLU | |
18 | } |