From: havoc Date: Wed, 19 Dec 2007 22:00:38 +0000 (+0000) Subject: fix a crash introduced in my BGRA commit (was providing no palette for a X-Git-Tag: xonotic-v0.1.0preview~2667 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=35027507d955ab4c8f73166618ccd0b53ac0e53e;p=xonotic%2Fdarkplaces.git fix a crash introduced in my BGRA commit (was providing no palette for a texture) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7824 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_draw.c b/gl_draw.c index bee392ce..f3241e56 100644 --- 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