From 14123d8051df5cbae0331c28f63a8ec3ef9a3852 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 17 Apr 2005 01:53:15 +0000 Subject: Development checking --- opengl/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'opengl/main.cpp') 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); -- cgit v1.2.3