From 28bbde237723eb55151b97f2d1142b80c678e36a Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 29 Apr 2012 20:54:37 +0000 Subject: [PATCH] Fix 'realloc' routine of GL texture name (id) debugging code. git-svn-id: https://svn.eduke32.com/eduke32@2618 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/glbuild.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/build/src/glbuild.c b/polymer/eduke32/build/src/glbuild.c index f864ec847..f4736c832 100644 --- a/polymer/eduke32/build/src/glbuild.c +++ b/polymer/eduke32/build/src/glbuild.c @@ -1043,10 +1043,10 @@ static void texdbg_realloc(uint32_t maxtexname) { uint32_t newsize = texnameallocsize ? texnameallocsize : 64; - if (texnameallocsize >= maxtexname) + if (maxtexname < texnameallocsize) return; - while (newsize < maxtexname) + while (maxtexname >= newsize) newsize <<= 1; // initprintf("texdebug: new size %u\n", newsize);