mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
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:
parent
530a183ea0
commit
28bbde2377
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue