(iOS) Force mipmapping off for textures on iOS

This commit is contained in:
Twinaphex 2015-10-29 23:23:56 +01:00
parent d4f037f6d7
commit c85414c7be

View File

@ -64,6 +64,13 @@ void gl_load_texture_data(GLuint id,
glBindTexture(GL_TEXTURE_2D, id);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, wrap);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, wrap);
#ifdef IOS
if (filter_type == TEXTURE_FILTER_MIPMAP_LINEAR)
filter_type = TEXTURE_FILTER_LINEAR;
if (filter_type == TEXTURE_FILTER_MIPMAP_NEAREST)
filter_type = TEXTURE_FILTER_NEAREST;
#endif
switch (filter_type)
{