Polymost: Tweak the "don't upload textures with dimension > xdim" GL ES rule to limit to the power of two greater than xdim instead of less than it.

git-svn-id: https://svn.eduke32.com/eduke32@5711 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2016-05-04 00:25:10 +00:00
parent 84a2695cdc
commit 73459ede47

View file

@ -888,7 +888,7 @@ void uploadtexture(int32_t doalloc, vec2_t siz, int32_t texfmt,
gltexmaxsize = 0;
for (; i>1; i>>=1) gltexmaxsize++;
#ifdef EDUKE32_GLES
while ((1<<gltexmaxsize) > xdim)
while ((1<<(gltexmaxsize-1)) > xdim)
gltexmaxsize--;
#endif
}