Fix gcc warnings when !defined(USE_OPENGL) && !defined(USE_GLES)

This commit is contained in:
Joris 2013-02-09 04:47:52 +01:00
parent d6efb9f190
commit 102a369dcf
2 changed files with 3 additions and 3 deletions

View file

@ -1029,9 +1029,9 @@ CFontColor::~CFontColor()
void CFont::Clean()
{
#if defined(USE_OPENGL) || defined(USE_GLES)
CFont *font = this;
#if defined(USE_OPENGL) || defined(USE_GLES)
if (UseOpenGL) {
FontColorGraphicMap &fontColorGraphicMap = FontColorGraphics[font];
if (!fontColorGraphicMap.empty()) {

View file

@ -982,6 +982,8 @@ void CGraphic::UseDisplayFormat()
}
}
#if defined(USE_OPENGL) || defined(USE_GLES)
/**
** Find the next power of 2 >= x
*/
@ -992,8 +994,6 @@ static int PowerOf2(int x)
return i;
}
#if defined(USE_OPENGL) || defined(USE_GLES)
/**
** Make an OpenGL texture or textures out of a graphic object.
**