diff --git a/src/r_draw.cpp b/src/r_draw.cpp index 2297d1035..39f8918bb 100644 --- a/src/r_draw.cpp +++ b/src/r_draw.cpp @@ -606,13 +606,8 @@ static void R_AllocViewMemory(void) R_AllocVisSpriteMemory(); } -void R_InitViewBuffer(INT32 width, INT32 height) +void R_InitViewBuffer(void) { - if (width > MAXVIDWIDTH) - width = MAXVIDWIDTH; - if (height > MAXVIDHEIGHT) - height = MAXVIDHEIGHT; - R_AllocViewMemory(); viewwindowx = 0; diff --git a/src/r_draw.h b/src/r_draw.h index 83ec33d56..a472b5537 100644 --- a/src/r_draw.h +++ b/src/r_draw.h @@ -163,6 +163,8 @@ void R_DrawMaskedColumn(drawcolumndata_t* dc, column_t *column); // r_draw.c // ------------------------------------------------ +// Custom player skin translation + #define GTC_CACHE 1 #define GTC_MENUCACHE GTC_CACHE //@TODO Add a separate caching mechanism for menu colormaps distinct from in-level GTC_CACHE. For now this is still preferable to memory leaks... @@ -207,8 +209,7 @@ UINT8 *R_GetBlendTable(int style, INT32 alphalevel); boolean R_BlendLevelVisible(INT32 blendmode, INT32 alphalevel); -// Custom player skin translation -void R_InitViewBuffer(INT32 width, INT32 height); +void R_InitViewBuffer(void); void R_VideoErase(size_t ofs, INT32 count); #define TRANSPARENTPIXEL 247 diff --git a/src/r_main.cpp b/src/r_main.cpp index 37cfed8c5..50185d016 100644 --- a/src/r_main.cpp +++ b/src/r_main.cpp @@ -1003,7 +1003,7 @@ static void R_InitViewMapping(void) static void R_SetupViewBuffers(void) { R_CalcFov(cv_fov.value); - R_InitViewBuffer(viewwidth, viewheight); + R_InitViewBuffer(); R_InitViewMapping(); }