1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Don't set GL_TEXTURE_MAX_LEVEL for GLES2.

This commit is contained in:
Sergey Lipskiy 2015-05-14 20:38:44 +06:00
parent b14086911c
commit 47719e3ce3

View File

@ -1098,7 +1098,9 @@ void TextureCache::activateTexture(u32 _t, CachedTexture *_pTexture)
const bool bUseLOD = currentCombiner()->usesLOD();
const GLint texLevel = bUseLOD ? _pTexture->max_level : 0;
#ifndef GLES2
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, texLevel);
#endif
if (config.texture.bilinearMode == BILINEAR_STANDARD) {
if (bUseBilinear) {
if (texLevel > 0)