diff options
Diffstat (limited to 'opengl/main.cpp')
-rw-r--r-- | opengl/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/opengl/main.cpp b/opengl/main.cpp index 19ca5a9..82bf991 100644 --- a/opengl/main.cpp +++ b/opengl/main.cpp @@ -28,7 +28,6 @@ static const char rcs_id[]="$Id$"; #include "gldialog.h" - // ---------------------------------------------------------------------- // MINGW WRAPPER FUNCTIONS // @@ -39,6 +38,9 @@ static const char* GetTitle() static int Execute(msModel* model) { + W32DLib::Common::Initialise(); + W32DLib::Common::MessageTitle("Simple OpenGL"); + if (!model) { return -1; @@ -46,12 +48,10 @@ static int Execute(msModel* model) if (msModel_GetMeshCount(model)<1) { - W32DLib::Common::Error(NULL,"No meshes in the model!"); + W32DLib::Common::Error(NULL,NULL,"No meshes in the model!"); return 0; } - W32DLib::Common::Initialise(); - Generate gen(model); GLDialog dlg(gen); |