From d6860c2606637d821b41537b35abf101f2cb32f9 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 19 Nov 2025 18:13:44 +0100 Subject: [PATCH] resize deez --- src/r_patch.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/r_patch.cpp b/src/r_patch.cpp index 0f9937ee9..60d4acb98 100644 --- a/src/r_patch.cpp +++ b/src/r_patch.cpp @@ -488,8 +488,7 @@ void *R_PixelsToPatch(UINT8 *raw, INT16 width, INT16 height, INT16 leftoffset, I // so, a 512x512 flat should maximally need 393,760 (384.53 KiB) bytes. // quite a bit smaller than 64 megabytes, and much less annoying to the windows debug allocator! - imgbuf.assign(maxoutsize, 0); - + imgbuf.resize(maxoutsize); imgptr = imgbuf.data(); // Write image size and offset @@ -620,8 +619,7 @@ void *R_MaskedFlatToPatch(UINT16 *raw, INT16 width, INT16 height, INT16 leftoffs // so, a 512x512 flat should maximally need 393,760 (384.53 KiB) bytes. // quite a bit smaller than 64 megabytes, and much less annoying to the windows debug allocator! - imgbuf.assign(maxoutsize, 0); - + imgbuf.resize(maxoutsize); imgptr = imgbuf.data(); // Write image size and offset