From d9c5a439d09211ec210195709d275596c6c3c9ba Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Sun, 1 Jul 2012 22:59:22 +0200 Subject: 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 --- src/app/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/app/main.cpp') 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(); } -- cgit v1.2.3-1-g7c22