From ea65768e0bb0f3b840405dbfb296600bddcb156e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 7 Jan 2024 12:28:21 +0100 Subject: [PATCH] fixed compile errors. --- src/maploader/maploader.cpp | 1 - src/rendering/swrenderer/textures/warpbuffer.h | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/maploader/maploader.cpp b/src/maploader/maploader.cpp index 817b02e1e7..826afc85fc 100644 --- a/src/maploader/maploader.cpp +++ b/src/maploader/maploader.cpp @@ -1169,7 +1169,6 @@ bool MapLoader::LoadNodes (MapData * map) int k; nodetype *mn; node_t* no; - uint16_t* used; int lumplen = map->Size(ML_NODES); int maxss = map->Size(ML_SSECTORS) / sizeof(subsectortype); diff --git a/src/rendering/swrenderer/textures/warpbuffer.h b/src/rendering/swrenderer/textures/warpbuffer.h index 16fd09b1fa..bbff5d9e72 100644 --- a/src/rendering/swrenderer/textures/warpbuffer.h +++ b/src/rendering/swrenderer/textures/warpbuffer.h @@ -64,10 +64,10 @@ void WarpBuffer(TYPE *Pixels, const TYPE *source, int width, int height, int xmu if (yf < 0) yf += height; int yt = yf; const TYPE *sourcep = Pixels + (x + ymask * x); - TYPE *dest = buffer; + TYPE *dest = buffer.data(); for (yt = height; yt; yt--, yf = (yf + 1) % height) *dest++ = sourcep[yf]; - memcpy(Pixels + (x + ymask*x), buffer, height * sizeof(TYPE)); + memcpy(Pixels + (x + ymask*x), buffer.data(), height * sizeof(TYPE)); } } else if (warptype == 2)