Skip to content

Commit f409919

Browse files
committedJan 9, 2019
Import strstr function from FreeBSD 11 libc
1 parent 0acdf93 commit f409919

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

Diff for: ‎src/client/tile.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
1919

2020
#include "tile.h"
2121

22-
#include <cstring>
2322
#include <algorithm>
2423
#include <ICameraSceneNode.h>
2524
#include "util/string.h"
@@ -1016,9 +1015,9 @@ video::IImage * Align2Npot2(video::IImage * image,
10161015
// Only GLES2 is trusted to correctly report npot support
10171016
// Note: we cache the boolean result. GL context will never change on Android.
10181017
static const bool hasNPotSupport = get_GL_major_version() > 1 &&
1019-
glGetString(GL_EXTENSIONS) &&
1020-
strstr(glGetString(GL_EXTENSIONS), "GL_OES_texture_npot");
1021-
1018+
glGetString(GL_EXTENSIONS) &&
1019+
strstr((char *)glGetString(GL_EXTENSIONS), "GL_OES_texture_npot");
1020+
10221021
if (hasNPotSupport)
10231022
return image;
10241023

0 commit comments

Comments
 (0)
Please sign in to comment.