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
This commit is contained in:
parent
d126d7c76f
commit
1d30e22ad9
@ -27,7 +27,11 @@
|
|||||||
# ifdef WIN32
|
# ifdef WIN32
|
||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
# endif
|
# endif
|
||||||
# include <GL/gl.h>
|
# ifdef ANDROID
|
||||||
|
# include <GLES/gl.h>
|
||||||
|
# else
|
||||||
|
# include <GL/gl.h>
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "audio/music_manager.hpp"
|
#include "audio/music_manager.hpp"
|
||||||
@ -482,6 +486,7 @@ void RaceGUIBase::renderPlayerView(const AbstractKart *kart)
|
|||||||
|
|
||||||
if (m_lightning > 0.0f)
|
if (m_lightning > 0.0f)
|
||||||
{
|
{
|
||||||
|
#ifndef ANDROID
|
||||||
GLint glviewport[4];
|
GLint glviewport[4];
|
||||||
glviewport[0] = viewport.UpperLeftCorner.X;
|
glviewport[0] = viewport.UpperLeftCorner.X;
|
||||||
glviewport[1] = viewport.UpperLeftCorner.Y;
|
glviewport[1] = viewport.UpperLeftCorner.Y;
|
||||||
@ -506,6 +511,7 @@ void RaceGUIBase::renderPlayerView(const AbstractKart *kart)
|
|||||||
glEnd();
|
glEnd();
|
||||||
glEnable(GL_TEXTURE_2D);
|
glEnable(GL_TEXTURE_2D);
|
||||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#if 0 // Rainy look, off, TODO: needs to be settable per track
|
#if 0 // Rainy look, off, TODO: needs to be settable per track
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user