[glsl] Fix some const-correct issues for textures

This commit is contained in:
Bill Currie 2021-12-14 00:42:22 +09:00
parent 2b332cfe4a
commit e7e6dd87e8
2 changed files with 8 additions and 6 deletions

View file

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

View file

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