#include "tile.h"
-#include <cstring>
#include <algorithm>
#include <ICameraSceneNode.h>
#include "util/string.h"
// 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;