From 35027507d955ab4c8f73166618ccd0b53ac0e53e Mon Sep 17 00:00:00 2001
From: havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Wed, 19 Dec 2007 22:00:38 +0000
Subject: [PATCH] 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
---
 gl_draw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
2.39.5