From 922e6f868be44c2b9736ba7b026b8ccdebd145fc Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 30 Oct 2015 16:23:44 +0100 Subject: [PATCH] Don't assume we can use NPOT mipmapped textures for anything GLES2 --- gfx/drivers/gl_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/drivers/gl_common.c b/gfx/drivers/gl_common.c index 36d2ccfe81..e088b78c94 100644 --- a/gfx/drivers/gl_common.c +++ b/gfx/drivers/gl_common.c @@ -65,7 +65,7 @@ void gl_load_texture_data(GLuint id, glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, wrap); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, wrap); -#ifdef IOS +#ifdef HAVE_OPENGLES2 if (filter_type == TEXTURE_FILTER_MIPMAP_LINEAR) filter_type = TEXTURE_FILTER_LINEAR; if (filter_type == TEXTURE_FILTER_MIPMAP_NEAREST)