safety measure against any possible feeding of -1 to drivers that crash
when given an invalid texnum
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8536
d7cf8633-e32d-0410-b094-
e92efae38249
if( !glt->dirtytexnum && glt->flags & GLTEXF_DYNAMIC ) {
glt->dirtytexnum = glt->texnum;
// mark it as dirty, so R_RealGetTexture gets called
- glt->texnum = -1;
+ glt->texnum = 0;
}
}
glt->glformat = texinfo->glformat;
glt->bytesperpixel = texinfo->internalbytesperpixel;
glt->sides = glt->texturetype == GLTEXTURETYPE_CUBEMAP ? 6 : 1;
- glt->texnum = -1;
+ glt->texnum = 0;
// init the dynamic texture attributes, too [11/22/2007 Black]
glt->dirtytexnum = 0;
glt->updatecallback = NULL;