From 0089cc7d318be18087641347f9b6fdfe2a6ee894 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 16 Jul 2010 00:42:13 +0000 Subject: [PATCH] - updated location of some opengl calls to be more friendly in open suse --- source/glest_game/graphics/renderer.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/source/glest_game/graphics/renderer.cpp b/source/glest_game/graphics/renderer.cpp index 418d07d1c..59a742b49 100644 --- a/source/glest_game/graphics/renderer.cpp +++ b/source/glest_game/graphics/renderer.cpp @@ -182,15 +182,6 @@ Renderer::Renderer(){ particleManager[i]= graphicsFactory->newParticleManager(); fontManager[i]= graphicsFactory->newFontManager(); } - - glHint(GL_FOG_HINT, GL_FASTEST); - //glHint(GL_GENERATE_MIPMAP_HINT, GL_FASTEST); - glHint(GL_LINE_SMOOTH_HINT, GL_FASTEST); - //glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST); - //glHint(GL_POINT_SMOOTH_HINT, GL_FASTEST); - - //glHint(GL_POLYGON_SMOOTH_HINT, GL_FASTEST); - glHint(GL_TEXTURE_COMPRESSION_HINT, GL_FASTEST); } Renderer::~Renderer(){ @@ -247,6 +238,16 @@ void Renderer::init(){ fontManager[rsGlobal]->init(); init2dList(); + + glHint(GL_FOG_HINT, GL_FASTEST); + //glHint(GL_GENERATE_MIPMAP_HINT, GL_FASTEST); + glHint(GL_LINE_SMOOTH_HINT, GL_FASTEST); + //glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST); + //glHint(GL_POINT_SMOOTH_HINT, GL_FASTEST); + + //glHint(GL_POLYGON_SMOOTH_HINT, GL_FASTEST); + glHint(GL_TEXTURE_COMPRESSION_HINT, GL_FASTEST); + } void Renderer::initGame(const Game *game){