mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
(iOS) Force mipmapping off for textures on iOS
This commit is contained in:
parent
d4f037f6d7
commit
c85414c7be
@ -64,6 +64,13 @@ void gl_load_texture_data(GLuint id,
|
|||||||
glBindTexture(GL_TEXTURE_2D, id);
|
glBindTexture(GL_TEXTURE_2D, id);
|
||||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, wrap);
|
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, wrap);
|
||||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, 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)
|
switch (filter_type)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user