]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a crash introduced in my BGRA commit (was providing no palette for a
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 19 Dec 2007 22:00:38 +0000 (22:00 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 19 Dec 2007 22:00:38 +0000 (22:00 +0000)
texture)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7824 d7cf8633-e32d-0410-b094-e92efae38249

gl_draw.c

index bee392cea05677daa78ca07061d97f83bf96978e..f3241e561a2ebe373795293d2912cdcabc262bf3 100644 (file)
--- a/gl_draw.c
+++ b/gl_draw.c
@@ -106,7 +106,7 @@ static rtexture_t *draw_generateditherpattern(void)
        for (y = 0;y < 8;y++)
                for (x = 0;x < 8;x++)
                        pixels[y][x] = ((x^y) & 4) ? 254 : 0;
-       return R_LoadTexture2D(drawtexturepool, "ditherpattern", 8, 8, pixels[0], TEXTYPE_PALETTE, TEXF_FORCENEAREST | TEXF_PRECACHE, NULL);
+       return R_LoadTexture2D(drawtexturepool, "ditherpattern", 8, 8, pixels[0], TEXTYPE_PALETTE, TEXF_FORCENEAREST | TEXF_PRECACHE, palette_bgra_transparent);
 }
 
 typedef struct embeddedpic_s