diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-07-05 14:41:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-07-05 15:02:57 +0300 |
commit | 6eb8340ef45a2bc4d28db5430f1cf9e890c93c3e (patch) | |
tree | 0677f49caf9604e12c3e34a02d10775c837655ea /source/blender/gpu/intern/gpu_codegen.c | |
parent | 416e006a2aee09a6354fad9aec6a3f44f9f758b8 (diff) |
Cleanup: use const arguments
Diffstat (limited to 'source/blender/gpu/intern/gpu_codegen.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_codegen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_codegen.c b/source/blender/gpu/intern/gpu_codegen.c index b1fcfc1e202..d12cecd129e 100644 --- a/source/blender/gpu/intern/gpu_codegen.c +++ b/source/blender/gpu/intern/gpu_codegen.c @@ -938,9 +938,9 @@ GPUPass *GPU_generate_pass(GPUMaterial *material, return pass; } -static int count_active_texture_sampler(GPUShader *shader, char *source) +static int count_active_texture_sampler(GPUShader *shader, const char *source) { - char *code = source; + const char *code = source; /* Remember this is per stage. */ GSet *sampler_ids = BLI_gset_int_new(__func__); |