mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +00:00
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:
parent
84a2695cdc
commit
73459ede47
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue