Cleanup: use const arguments

This commit is contained in:
2021-07-05 21:41:45 +10:00
parent 416e006a2a
commit 6eb8340ef4
4 changed files with 9 additions and 7 deletions

View File

@@ -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__);