From c906aa0106f999a1a7207640a57dcd225daf8a22 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 18 Jan 2025 08:39:31 +0300 Subject: [PATCH] ref: gl: make DrawGLPoly and R_TextureAnimation private to brush rendering code --- ref/gl/gl_local.h | 2 -- ref/gl/gl_rsurf.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ref/gl/gl_local.h b/ref/gl/gl_local.h index fc8ee76c..8679ca60 100644 --- a/ref/gl/gl_local.h +++ b/ref/gl/gl_local.h @@ -438,8 +438,6 @@ void R_DrawWaterSurfaces( void ); void R_DrawBrushModel( cl_entity_t *e ); void GL_SubdivideSurface( model_t *mod, msurface_t *fa ); void GL_BuildPolygonFromSurface( model_t *mod, msurface_t *fa ); -void DrawGLPoly( glpoly2_t *p, float xScale, float yScale ); -texture_t *R_TextureAnimation( msurface_t *s ); void GL_SetupFogColorForSurfaces( void ); void R_DrawAlphaTextureChains( void ); void GL_RebuildLightmaps( void ); diff --git a/ref/gl/gl_rsurf.c b/ref/gl/gl_rsurf.c index fb50cf33..5e0239a9 100644 --- a/ref/gl/gl_rsurf.c +++ b/ref/gl/gl_rsurf.c @@ -478,7 +478,7 @@ R_TextureAnimation Returns the proper texture for a given time and surface =============== */ -texture_t *R_TextureAnimation( msurface_t *s ) +static texture_t *R_TextureAnimation( msurface_t *s ) { texture_t *base = s->texinfo->texture; int count, reletive; @@ -812,7 +812,7 @@ static void R_BuildLightMap( const msurface_t *surf, byte *dest, int stride, qbo DrawGLPoly ================ */ -void DrawGLPoly( glpoly2_t *p, float xScale, float yScale ) +static void DrawGLPoly( glpoly2_t *p, float xScale, float yScale ) { float *v; float sOffset, sy;