From 349e7c8708460fcb525cec8a0388cdccf94e1c8a Mon Sep 17 00:00:00 2001 From: scribam Date: Sat, 8 Jun 2019 08:30:15 +0200 Subject: [PATCH] rsx: Apply Clang-Tidy fix "readability-non-const-parameter" --- rpcs3/Emu/RSX/GL/GLHelpers.h | 2 +- rpcs3/Emu/RSX/VK/VKTextOut.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/GL/GLHelpers.h b/rpcs3/Emu/RSX/GL/GLHelpers.h index aeda8d72eb..9861759f47 100644 --- a/rpcs3/Emu/RSX/GL/GLHelpers.h +++ b/rpcs3/Emu/RSX/GL/GLHelpers.h @@ -1942,7 +1942,7 @@ namespace gl return m_aspect_flags; } - bool compare_swizzle(GLenum* argb_swizzle) const + bool compare_swizzle(const GLenum* argb_swizzle) const { return (argb_swizzle[0] == component_swizzle[3] && argb_swizzle[1] == component_swizzle[0] && diff --git a/rpcs3/Emu/RSX/VK/VKTextOut.h b/rpcs3/Emu/RSX/VK/VKTextOut.h index ee0b9a52d5..bc6f05b3ba 100644 --- a/rpcs3/Emu/RSX/VK/VKTextOut.h +++ b/rpcs3/Emu/RSX/VK/VKTextOut.h @@ -198,7 +198,7 @@ namespace vk m_program = std::make_unique((VkDevice)dev, pipeline, unused, unused); } - void load_program(vk::command_buffer &cmd, float scale_x, float scale_y, float *offsets, size_t nb_offsets, std::array color) + void load_program(vk::command_buffer &cmd, float scale_x, float scale_y, const float *offsets, size_t nb_offsets, std::array color) { verify(HERE), m_used_descriptors < 120;