THIS BREAKS blendfunc add WITH ALPHA CHANNEL, AS THE ALPHA CHANNEL IS NOW PROPERLY IGNORED.
Use blendfunc GL_SRC_ALPHA GL_ONE if you want to add with alpha channel!
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11328
d7cf8633-e32d-0410-b094-
e92efae38249
break;
}
- // nasty hack because DP treats this the same as GL_SRC_ALPHA GL_ONE
- if(layer->blendfunc[0] == GL_ONE && layer->blendfunc[1] == GL_ONE)
- layer->texflags |= TEXF_ALPHA;
-
if (!(shader.surfaceparms & Q3SURFACEPARM_NOMIPMAPS))
layer->texflags |= TEXF_MIPMAP;
if (!(shader.textureflags & Q3TEXTUREFLAG_NOPICMIP))