From d67c5cd7ae78261a730508bc5bb4ed78ccf6fa05 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 27 Jan 2009 21:55:17 +0000 Subject: Fix for R_InitTranslationTables to not align on a 256 byte boundary (fixes 64 bit) Subversion-branch: /branches/raven-branch Subversion-revision: 1435 --- src/heretic/r_draw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/heretic/r_draw.c') diff --git a/src/heretic/r_draw.c b/src/heretic/r_draw.c index f795b318..5a20b50a 100644 --- a/src/heretic/r_draw.c +++ b/src/heretic/r_draw.c @@ -244,8 +244,7 @@ void R_InitTranslationTables(void) V_LoadTintTable(); // Allocate translation tables - translationtables = Z_Malloc(256 * 3 + 255, PU_STATIC, 0); - translationtables = (byte *) (((int) translationtables + 255) & ~255); + translationtables = Z_Malloc(256 * 3, PU_STATIC, 0); // Fill out the translation tables for (i = 0; i < 256; i++) -- cgit v1.2.3