]> de.git.xonotic.org Git - xonotic/darkplaces.git/commit
cvar: r_texture_dds_load_dxt1_noalpha; if set, DXT1 alpha detection is disabled,...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 6 Aug 2010 18:48:30 +0000 (18:48 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 6 Aug 2010 18:47:10 +0000 (20:47 +0200)
commit57e666a043794f7703a02efd2cb2c49f923c3922
treef040a671070376531da33ecc2c536206bfd48132
parent04361b58a27b3e41d79b656677c680ea2cd3c25f
cvar: r_texture_dds_load_dxt1_noalpha; if set, DXT1 alpha detection is disabled, and DXT1 is assumed to have no alpha.
Rationale is that ATI Compressonator sometimes picks the alpha'd compression mode [a, (a+b)/2, b, transparent] and then never uses the transparent color value 3, as it sometimes can yield better results than the non-alpha'd compression mode [a, (2a+b)/3, (a+2b)/3, b], and this throws off alpha detection on loading

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10375 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=2f606f773eb3e95ac0b58cbafc1c7782fc48796c
gl_textures.c