Skip to content

Commit

Permalink
Import strstr function from FreeBSD 11 libc
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzhul committed Jan 9, 2019
1 parent 0acdf93 commit f409919
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/client/tile.cpp
Expand Up @@ -19,7 +19,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,

#include "tile.h"

#include <cstring>
#include <algorithm>
#include <ICameraSceneNode.h>
#include "util/string.h"
Expand Down Expand Up @@ -1016,9 +1015,9 @@ video::IImage * Align2Npot2(video::IImage * image,
// Only GLES2 is trusted to correctly report npot support
// Note: we cache the boolean result. GL context will never change on Android.
static const bool hasNPotSupport = get_GL_major_version() > 1 &&
glGetString(GL_EXTENSIONS) &&
strstr(glGetString(GL_EXTENSIONS), "GL_OES_texture_npot");
glGetString(GL_EXTENSIONS) &&
strstr((char *)glGetString(GL_EXTENSIONS), "GL_OES_texture_npot");

if (hasNPotSupport)
return image;

Expand Down

0 comments on commit f409919

Please sign in to comment.