mirror of
https://github.com/nzp-team/quakespasm.git
synced 2024-11-24 04:41:20 +00:00
VITA/NX: Fix implicit function declaration warning
GCC 14 makes this an error. source/gl_rmisc.c: In function 'R_Init': source/gl_rmisc.c:256:2: warning: implicit declaration of function 'R_InitOtherTextures'; did you mean 'R_InitTextures'? [-Wimplicit-function-declaration] 256 | R_InitOtherTextures (); | ^~~~~~~~~~~~~~~~~~~ | R_InitTextures source/gl_rmisc.c: At top level: source/gl_rmisc.c:671:6: warning: conflicting types for 'R_InitOtherTextures' 671 | void R_InitOtherTextures (void) | ^~~~~~~~~~~~~~~~~~~ source/gl_rmisc.c:256:2: note: previous implicit declaration of 'R_InitOtherTextures' was here 256 | R_InitOtherTextures (); | ^~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
d1200a3956
commit
befc85915d
1 changed files with 19 additions and 20 deletions
|
@ -177,6 +177,25 @@ float GL_WaterAlphaForSurface (msurface_t *fa)
|
|||
return map_wateralpha;
|
||||
}
|
||||
|
||||
/*
|
||||
==================
|
||||
R_InitOtherTextures
|
||||
==================
|
||||
*/
|
||||
void R_InitOtherTextures (void)
|
||||
{
|
||||
//static decals
|
||||
decal_blood1 = loadtextureimage ("textures/decals/blood_splat01");
|
||||
decal_blood2 = loadtextureimage ("textures/decals/blood_splat02");
|
||||
decal_blood3 = loadtextureimage ("textures/decals/blood_splat03");
|
||||
decal_q3blood = loadtextureimage ("textures/decals/blood_stain");
|
||||
decal_burn = loadtextureimage ("textures/decals/explo_burn01");
|
||||
decal_mark = loadtextureimage ("textures/decals/particle_burn01");
|
||||
decal_glow = loadtextureimage ("textures/decals/glow2");
|
||||
|
||||
// external zombie skin
|
||||
zombie_skin = loadtextureimage ("models/ai/zfull.mdl_0");
|
||||
}
|
||||
|
||||
/*
|
||||
===============
|
||||
|
@ -663,23 +682,3 @@ void GL_ClearBufferBindings ()
|
|||
GL_BindBufferFunc (GL_ELEMENT_ARRAY_BUFFER, 0);
|
||||
}
|
||||
|
||||
/*
|
||||
==================
|
||||
R_InitOtherTextures
|
||||
==================
|
||||
*/
|
||||
void R_InitOtherTextures (void)
|
||||
{
|
||||
//static decals
|
||||
decal_blood1 = loadtextureimage ("textures/decals/blood_splat01");
|
||||
decal_blood2 = loadtextureimage ("textures/decals/blood_splat02");
|
||||
decal_blood3 = loadtextureimage ("textures/decals/blood_splat03");
|
||||
decal_q3blood = loadtextureimage ("textures/decals/blood_stain");
|
||||
decal_burn = loadtextureimage ("textures/decals/explo_burn01");
|
||||
decal_mark = loadtextureimage ("textures/decals/particle_burn01");
|
||||
decal_glow = loadtextureimage ("textures/decals/glow2");
|
||||
|
||||
// external zombie skin
|
||||
zombie_skin = loadtextureimage ("models/ai/zfull.mdl_0");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue