From 7dd3fb128b714d1fb357ecf2eca3b9eade38ae60 Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 19 Oct 2025 20:57:19 +0200 Subject: [PATCH] clear our column buffer after allocation --- src/r_draw.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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