From 9d3210259c235dbfb67e25863640411eea94c5fc Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 14 Oct 2024 04:15:48 +0300 Subject: [PATCH] ref: set hullcolor (used by r_drawentities) as const --- ref/gl/gl_studio.c | 2 +- ref/soft/r_studio.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ref/gl/gl_studio.c b/ref/gl/gl_studio.c index f2080678..f78ee774 100644 --- a/ref/gl/gl_studio.c +++ b/ref/gl/gl_studio.c @@ -35,7 +35,7 @@ typedef struct // never gonna change, just shut up const warning cvar_t r_shadows = { (char *)"r_shadows", (char *)"0", 0 }; -static vec3_t hullcolor[8] = +static const vec3_t hullcolor[8] = { { 1.0f, 1.0f, 1.0f }, { 1.0f, 0.5f, 0.5f }, diff --git a/ref/soft/r_studio.c b/ref/soft/r_studio.c index c18955bc..74bbfe5e 100644 --- a/ref/soft/r_studio.c +++ b/ref/soft/r_studio.c @@ -34,7 +34,7 @@ typedef struct cvar_t r_shadows = { (char *)"r_shadows", (char *)"0", 0 }; -static vec3_t hullcolor[8] = +static const vec3_t hullcolor[8] = { { 1.0f, 1.0f, 1.0f }, { 1.0f, 0.5f, 0.5f },