Fix gcc warnings when !defined(USE_OPENGL) && !defined(USE_GLES)
This commit is contained in:
parent
d6efb9f190
commit
102a369dcf
2 changed files with 3 additions and 3 deletions
src/video
|
@ -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()) {
|
||||
|
|
|
@ -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.
|
||||
**
|
||||
|
|
Loading…
Add table
Reference in a new issue