diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2019-01-09 21:14:04 +0100 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2019-01-10 00:17:08 +0100 |
commit | f4099192e398d38fede20efdc9985f768ab87da5 (patch) | |
tree | 570fcc862e69c10ea646671d2b21c6a75ae2e560 | |
parent | 0acdf936830f0bee6bff553201febedecb12a482 (diff) | |
download | minetest-f4099192e398d38fede20efdc9985f768ab87da5.tar.gz minetest-f4099192e398d38fede20efdc9985f768ab87da5.tar.bz2 minetest-f4099192e398d38fede20efdc9985f768ab87da5.zip |
Import strstr function from FreeBSD 11 libc
-rw-r--r-- | src/client/tile.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/client/tile.cpp b/src/client/tile.cpp index 233a64e14..4911013ae 100644 --- a/src/client/tile.cpp +++ b/src/client/tile.cpp @@ -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" @@ -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; |