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

This commit is contained in:
scribam authored and kd-11 committed 2019-06-12 15:11:52 +03:00
1 parent 35dc98be06
commit 349e7c8708
2 files changed
+2 -2

No files matched your search

+1 -1
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] &&
+1 -1
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;