I'm approaching completion on my first OpenGL ES game (yay!) but just recently ran into an odd issue with texture filtering. I was trying to improve the game's performance when linear filtering suddenly broke. Code when creating textures was this:
But now, I'm having to set the texture parameters when binding textures and rendering geometry. Is this normal and was it just a fluke that it was working before?
Search your project for GL_TEXTURE_MIN_FILTER and check every location where you are calling that.
After you have set the GL_TEXTURE_MIN_FILTER property on your texture, you do not need to change it. Therefore you need to focus your search on where you are re-binding that texture (unintentionally) and changing its GL_TEXTURE_MIN_FILTER.
Check every location where you use GL_TEXTURE_MIN_FILTER, and be sure of exactly which texture is bound. It may not be the one you think.
L. Spiro
I restore Nintendo 64 video-game OST’s into HD! https://www.youtube.com/channel/UCCtX_wedtZ5BoyQBXEhnVZw/playlists?view=1&sort=lad&flow=grid