Clang Tidy: enable readability-non-const-parameter warning
Clang Tidy reported a couple of false positives. I disabled those `NOLINTNEXTLINE`. Differential Revision: https://developer.blender.org/D8199
This commit is contained in:
@@ -114,8 +114,8 @@ void EEVEE_material_bind_resources(DRWShadingGroup *shgrp,
|
||||
GPUMaterial *gpumat,
|
||||
EEVEE_ViewLayerData *sldata,
|
||||
EEVEE_Data *vedata,
|
||||
int *ssr_id,
|
||||
float *refract_depth,
|
||||
const int *ssr_id,
|
||||
const float *refract_depth,
|
||||
bool use_ssrefraction,
|
||||
bool use_alpha_blend)
|
||||
{
|
||||
|
||||
@@ -1012,8 +1012,8 @@ void EEVEE_material_bind_resources(DRWShadingGroup *shgrp,
|
||||
struct GPUMaterial *gpumat,
|
||||
EEVEE_ViewLayerData *sldata,
|
||||
EEVEE_Data *vedata,
|
||||
int *ssr_id,
|
||||
float *refract_depth,
|
||||
const int *ssr_id,
|
||||
const float *refract_depth,
|
||||
bool use_ssrefraction,
|
||||
bool use_alpha_blend);
|
||||
/* eevee_lights.c */
|
||||
|
||||
@@ -96,7 +96,7 @@ static void invert_cdf(const float cdf[FILTER_CDF_TABLE_SIZE],
|
||||
}
|
||||
|
||||
/* Evaluate a discrete function table with linear interpolation. */
|
||||
static float eval_table(float *table, float x)
|
||||
static float eval_table(const float *table, float x)
|
||||
{
|
||||
CLAMP(x, 0.0f, 1.0f);
|
||||
x = x * (FILTER_CDF_TABLE_SIZE - 1);
|
||||
|
||||
Reference in New Issue
Block a user