]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_brush.c
fix bug with transparency sorting introduced by vortex in r11822 where
[xonotic/darkplaces.git] / model_brush.c
index d5fad783b518788cfda2652c95de15ec26832ae4..f6453414e4726dfd4024028b76f4f8c11dbd5b8f 100644 (file)
@@ -1680,6 +1680,9 @@ static void Mod_Q1BSP_LoadTextures(sizebuf_t *sb)
                tx->offsetbias = 0;
                tx->specularscalemod = 1;
                tx->specularpowermod = 1;
+               tx->transparentsort = TRANSPARENTSORT_DISTANCE;
+               // WHEN ADDING DEFAULTS HERE, REMEMBER TO PUT DEFAULTS IN ALL LOADERS
+               // JUST GREP FOR "specularscalemod = 1".
        }
 
        if (!sb->cursize)