diff --git a/include/QF/GLSL/qf_textures.h b/include/QF/GLSL/qf_textures.h index 2298c3e16..3a5f0b8b7 100644 --- a/include/QF/GLSL/qf_textures.h +++ b/include/QF/GLSL/qf_textures.h @@ -33,13 +33,13 @@ typedef struct scrap_s scrap_t; int GLSL_LoadQuakeTexture (const char *identifier, int width, int height, - byte *data); + const byte *data); struct texture_s; int GLSL_LoadQuakeMipTex (const struct texture_s *tex); int GLSL_LoadRGBTexture (const char *identifier, int width, int height, - byte *data); + const byte *data); int GLSL_LoadRGBATexture (const char *identifier, int width, int height, - byte *data); + const byte *data); void GLSL_ReleaseTexture (int tex); void GLSL_TextureInit (void); diff --git a/libs/video/renderer/glsl/glsl_textures.c b/libs/video/renderer/glsl/glsl_textures.c index 9b80351ee..96c0f0c77 100644 --- a/libs/video/renderer/glsl/glsl_textures.c +++ b/libs/video/renderer/glsl/glsl_textures.c @@ -72,7 +72,7 @@ static int max_tex_size; int GLSL_LoadQuakeTexture (const char *identifier, int width, int height, - byte *data) + const byte *data) { GLuint tnum; @@ -204,7 +204,8 @@ GLSL_LoadQuakeMipTex (const texture_t *tex) } int -GLSL_LoadRGBTexture (const char *identifier, int width, int height, byte *data) +GLSL_LoadRGBTexture (const char *identifier, int width, int height, + const byte *data) { GLuint tnum; @@ -222,7 +223,8 @@ GLSL_LoadRGBTexture (const char *identifier, int width, int height, byte *data) } int -GLSL_LoadRGBATexture (const char *identifier, int width, int height, byte *data) +GLSL_LoadRGBATexture (const char *identifier, int width, int height, + const byte *data) { GLuint tnum;