From 04fa89c0badebfe8e241ae87c501ebdc9016f36d Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Tue, 24 Mar 2015 03:39:50 -0500 Subject: OpenGL2: Fix shadow cubemap segfault Changed image size to 512, but 'data' buffer is only 16x16 resulting in libGL segfault. Use NULL instead like other dynamic images. --- src/renderergl2/tr_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/renderergl2') diff --git a/src/renderergl2/tr_image.c b/src/renderergl2/tr_image.c index 3bf21c88..08894a4a 100644 --- a/src/renderergl2/tr_image.c +++ b/src/renderergl2/tr_image.c @@ -2715,7 +2715,7 @@ void R_CreateBuiltinImages( void ) { { for( x = 0; x < MAX_DLIGHTS; x++) { - tr.shadowCubemaps[x] = R_CreateImage(va("*shadowcubemap%i", x), (byte *)data, PSHADOW_MAP_SIZE, PSHADOW_MAP_SIZE, IMGTYPE_COLORALPHA, IMGFLAG_CLAMPTOEDGE | IMGFLAG_CUBEMAP, 0); + tr.shadowCubemaps[x] = R_CreateImage(va("*shadowcubemap%i", x), NULL, PSHADOW_MAP_SIZE, PSHADOW_MAP_SIZE, IMGTYPE_COLORALPHA, IMGFLAG_CLAMPTOEDGE | IMGFLAG_CUBEMAP, 0); } } -- cgit