diff --git a/src/r_draw.cpp b/src/r_draw.cpp index ed233e387..2297d1035 100644 --- a/src/r_draw.cpp +++ b/src/r_draw.cpp @@ -636,8 +636,10 @@ void R_InitViewBuffer(INT32 width, INT32 height) bufsize++; temp_dc.buf = static_cast(aligned_alloc(16, bufsize)); #else - temp_dc.buf = static_cast(Z_Calloc(bufsize, PU_STATIC, NULL)); + temp_dc.buf = static_cast(Z_Malloc(bufsize, PU_STATIC, NULL)); #endif + + memset(temp_dc.buf, 0, bufsize); } /** \brief The R_VideoErase function