Fix 'realloc' routine of GL texture name (id) debugging code.

git-svn-id: https://svn.eduke32.com/eduke32@2618 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-04-29 20:54:37 +00:00
parent 530a183ea0
commit 28bbde2377

View file

@ -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);