mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 09:51:41 +00:00
[glsl] Fix some const-correct issues for textures
This commit is contained in:
parent
2b332cfe4a
commit
e7e6dd87e8
2 changed files with 8 additions and 6 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue