rsx: Apply Clang-Tidy fix "readability-non-const-parameter"

This commit is contained in:
scribam 2019-06-08 08:30:15 +02:00 committed by kd-11
parent 35dc98be06
commit 349e7c8708
2 changed files with 2 additions and 2 deletions

View File

@ -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] &&

View File

@ -198,7 +198,7 @@ namespace vk
m_program = std::make_unique<vk::glsl::program>((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<float, 4> color)
void load_program(vk::command_buffer &cmd, float scale_x, float scale_y, const float *offsets, size_t nb_offsets, std::array<float, 4> color)
{
verify(HERE), m_used_descriptors < 120;