From 1d30e22ad919ee64bfb7d0aa5d1f175e99e41997 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Thu, 20 Sep 2012 06:19:38 +0000 Subject: [PATCH] Work around gles problem for now. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11617 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/states_screens/race_gui_base.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/states_screens/race_gui_base.cpp b/src/states_screens/race_gui_base.cpp index 36b788bc4..2e2494ead 100644 --- a/src/states_screens/race_gui_base.cpp +++ b/src/states_screens/race_gui_base.cpp @@ -27,7 +27,11 @@ # ifdef WIN32 # include # endif -# include +# ifdef ANDROID +# include +# else +# include +# endif #endif #include "audio/music_manager.hpp" @@ -482,6 +486,7 @@ void RaceGUIBase::renderPlayerView(const AbstractKart *kart) if (m_lightning > 0.0f) { +#ifndef ANDROID GLint glviewport[4]; glviewport[0] = viewport.UpperLeftCorner.X; glviewport[1] = viewport.UpperLeftCorner.Y; @@ -506,6 +511,7 @@ void RaceGUIBase::renderPlayerView(const AbstractKart *kart) glEnd(); glEnable(GL_TEXTURE_2D); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); +#endif } #if 0 // Rainy look, off, TODO: needs to be settable per track else