Import strstr function from FreeBSD 11 libc
This commit is contained in:
parent
0acdf93683
commit
f4099192e3
@ -19,7 +19,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
|
|
||||||
#include "tile.h"
|
#include "tile.h"
|
||||||
|
|
||||||
#include <cstring>
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <ICameraSceneNode.h>
|
#include <ICameraSceneNode.h>
|
||||||
#include "util/string.h"
|
#include "util/string.h"
|
||||||
@ -1017,7 +1016,7 @@ video::IImage * Align2Npot2(video::IImage * image,
|
|||||||
// Note: we cache the boolean result. GL context will never change on Android.
|
// Note: we cache the boolean result. GL context will never change on Android.
|
||||||
static const bool hasNPotSupport = get_GL_major_version() > 1 &&
|
static const bool hasNPotSupport = get_GL_major_version() > 1 &&
|
||||||
glGetString(GL_EXTENSIONS) &&
|
glGetString(GL_EXTENSIONS) &&
|
||||||
strstr(glGetString(GL_EXTENSIONS), "GL_OES_texture_npot");
|
strstr((char *)glGetString(GL_EXTENSIONS), "GL_OES_texture_npot");
|
||||||
|
|
||||||
if (hasNPotSupport)
|
if (hasNPotSupport)
|
||||||
return image;
|
return image;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user