ldforge.pro

Fri, 18 Oct 2013 17:57:42 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Fri, 18 Oct 2013 17:57:42 +0300
changeset 510
ee90c55dfeef
parent 509
dcacfd2cd81b
child 513
29eb671b34f6
permissions
-rw-r--r--

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
543a6696096f down with cmake!
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
1 ######################################################################
543a6696096f down with cmake!
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
2 # Automatically generated by qmake (2.01a) Sat Sep 22 17:29:49 2012
543a6696096f down with cmake!
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
3 ######################################################################
543a6696096f down with cmake!
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
4
491
7d1b5ecd76c0 it's LDForge's 1st birthday!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 485
diff changeset
5 TEMPLATE = app
7d1b5ecd76c0 it's LDForge's 1st birthday!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 485
diff changeset
6 TARGET = ldforge
7d1b5ecd76c0 it's LDForge's 1st birthday!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 485
diff changeset
7 SUBDIRS += ./src
7d1b5ecd76c0 it's LDForge's 1st birthday!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 485
diff changeset
8
485
543a6696096f down with cmake!
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
9 TARGET = ldforge
491
7d1b5ecd76c0 it's LDForge's 1st birthday!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 485
diff changeset
10 DEPENDPATH += .
7d1b5ecd76c0 it's LDForge's 1st birthday!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 485
diff changeset
11 INCLUDEPATH += . ./build/
7d1b5ecd76c0 it's LDForge's 1st birthday!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 485
diff changeset
12 RC_FILE = ldforge.rc
7d1b5ecd76c0 it's LDForge's 1st birthday!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 485
diff changeset
13 RESOURCES = ldforge.qrc
7d1b5ecd76c0 it's LDForge's 1st birthday!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 485
diff changeset
14 RCC_DIR = ./build/
7d1b5ecd76c0 it's LDForge's 1st birthday!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 485
diff changeset
15 OBJECTS_DIR = ./build/
7d1b5ecd76c0 it's LDForge's 1st birthday!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 485
diff changeset
16 MOC_DIR = ./build/
7d1b5ecd76c0 it's LDForge's 1st birthday!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 485
diff changeset
17 RCC_DIR = ./build/
7d1b5ecd76c0 it's LDForge's 1st birthday!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 485
diff changeset
18 UI_DIR = ./build/
7d1b5ecd76c0 it's LDForge's 1st birthday!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 485
diff changeset
19 SOURCES = src/*.cpp
7d1b5ecd76c0 it's LDForge's 1st birthday!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 485
diff changeset
20 HEADERS = src/*.h
7d1b5ecd76c0 it's LDForge's 1st birthday!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 485
diff changeset
21 FORMS = ui/*.ui
7d1b5ecd76c0 it's LDForge's 1st birthday!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 485
diff changeset
22 QT += opengl network
7d1b5ecd76c0 it's LDForge's 1st birthday!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 485
diff changeset
23 QMAKE_CXXFLAGS += -std=c++0x
509
dcacfd2cd81b - added debug/release build configuration. Debug builds are really useful things!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 491
diff changeset
24 CONFIG += debug_and_release
dcacfd2cd81b - added debug/release build configuration. Debug builds are really useful things!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 491
diff changeset
25
dcacfd2cd81b - added debug/release build configuration. Debug builds are really useful things!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 491
diff changeset
26 CONFIG (debug, debug|release) {
dcacfd2cd81b - added debug/release build configuration. Debug builds are really useful things!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 491
diff changeset
27 TARGET = ldforge_debug
dcacfd2cd81b - added debug/release build configuration. Debug builds are really useful things!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 491
diff changeset
28 } else {
dcacfd2cd81b - added debug/release build configuration. Debug builds are really useful things!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 491
diff changeset
29 TARGET = ldforge
dcacfd2cd81b - added debug/release build configuration. Debug builds are really useful things!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 491
diff changeset
30 }
491
7d1b5ecd76c0 it's LDForge's 1st birthday!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 485
diff changeset
31
7d1b5ecd76c0 it's LDForge's 1st birthday!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 485
diff changeset
32 unix {
7d1b5ecd76c0 it's LDForge's 1st birthday!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 485
diff changeset
33 LIBS += -lGLU
509
dcacfd2cd81b - added debug/release build configuration. Debug builds are really useful things!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 491
diff changeset
34 }

mercurial