|
From: <cn...@us...> - 2009-05-12 04:56:53
|
Revision: 225
http://hgengine.svn.sourceforge.net/hgengine/?rev=225&view=rev
Author: cnlohr
Date: 2009-05-12 04:56:51 +0000 (Tue, 12 May 2009)
Log Message:
-----------
Load OGL Extensions at boot.
Modified Paths:
--------------
Mercury2/src/Mercury2.cpp
Modified: Mercury2/src/Mercury2.cpp
===================================================================
--- Mercury2/src/Mercury2.cpp 2009-05-12 04:55:43 UTC (rev 224)
+++ Mercury2/src/Mercury2.cpp 2009-05-12 04:56:51 UTC (rev 225)
@@ -15,6 +15,7 @@
#include <MercuryTimer.h>
#include <RenderGraph.h>
#include <Texture.h>
+#include <GLHeaders.h>
bool SHOWBOUNDINGVOLUME = false;
@@ -42,10 +43,15 @@
int main()
{
unsigned long m_count = 0;
-
+
cnset_execute_on_crash( SignalHandler );
MercuryWindow* w = MercuryWindow::MakeWindow();
+
+#ifdef WIN32
+ SetupOGLExtensions();
+#endif
+
MercuryNode* root = new MercuryNode();
XMLDocument* doc = XMLDocument::Load("scenegraph.xml");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|