From 73459ede4733831c643964289ef24d264f6673c0 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Wed, 4 May 2016 00:25:10 +0000 Subject: [PATCH] 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 --- polymer/eduke32/build/src/polymost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/polymost.c b/polymer/eduke32/build/src/polymost.c index 5d4fea605..654ea2bbe 100644 --- a/polymer/eduke32/build/src/polymost.c +++ b/polymer/eduke32/build/src/polymost.c @@ -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< xdim) + while ((1<<(gltexmaxsize-1)) > xdim) gltexmaxsize--; #endif }