summaryrefslogtreecommitdiffstats
path: root/src/app/main.cpp
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-07-01 22:59:22 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-07-01 22:59:22 +0200
commitd9c5a439d09211ec210195709d275596c6c3c9ba (patch)
treeb536721f8ac5f42649345eeb836259bbf6a887e3 /src/app/main.cpp
parent9bd4ec03b272e7925b11c3efc2bd8460894ea589 (diff)
downloadcolobot-d9c5a439d09211ec210195709d275596c6c3c9ba.tar.gz
colobot-d9c5a439d09211ec210195709d275596c6c3c9ba.tar.bz2
colobot-d9c5a439d09211ec210195709d275596c6c3c9ba.zip
CGLDevice implementation
- extended Gfx::CDevice interface - written OpenGL implementation in Gfx::CGLDevice - rewrote color and light module - added Gfx::VertexCol - added array casts to Math::Vector, Math::Matrix and Gfx::Color
Diffstat (limited to 'src/app/main.cpp')
-rw-r--r--src/app/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp
index 54d305e..1e102d7 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -35,7 +35,10 @@ int main(int argc, char *argv[])
}
if (! app.Create())
- return 0;
+ {
+ app.Destroy(); // ensure a clean exit
+ return 1;
+ }
return app.Run();
}