From 989e0f28d6727ce76ab6de0cea38418d0715e023 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Fri, 3 Feb 2023 03:30:12 +0300 Subject: [PATCH] rsx/overlays: Remove redundant resize --- rpcs3/Emu/RSX/Overlays/overlay_controls.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/Overlays/overlay_controls.cpp b/rpcs3/Emu/RSX/Overlays/overlay_controls.cpp index 23ea6b4dec..2b98b31fdb 100644 --- a/rpcs3/Emu/RSX/Overlays/overlay_controls.cpp +++ b/rpcs3/Emu/RSX/Overlays/overlay_controls.cpp @@ -27,8 +27,8 @@ namespace rsx { static std::vector generate_unit_quadrant(int num_patch_points, const float offset[2], const float scale[2]) { - std::vector result; - result.resize(num_patch_points + 1); + ensure(num_patch_points >= 3); + std::vector result(num_patch_points + 1); // Set root vertex result[0].vec2(offset[0], offset[1]);