From 7100ebe5a9e775bd1807475e8894d52e40a29f7d Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Sat, 15 Sep 2018 11:45:38 +0100 Subject: [PATCH] Prefix some non-static private methods --- GL/flush.c | 4 ++-- GL/lighting.c | 2 +- GL/private.h | 4 ++-- GL/state.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/GL/flush.c b/GL/flush.c index d3ed69d..1d53999 100644 --- a/GL/flush.c +++ b/GL/flush.c @@ -71,8 +71,8 @@ void APIENTRY glKosInit() { initMatrices(); initAttributePointers(); - initContext(); - initLights(); + _glInitContext(); + _glInitLights(); initImmediateMode(); initFramebuffers(); diff --git a/GL/lighting.c b/GL/lighting.c index b0a5cfb..c1d1735 100644 --- a/GL/lighting.c +++ b/GL/lighting.c @@ -13,7 +13,7 @@ static GLenum COLOR_MATERIAL_MODE = GL_AMBIENT_AND_DIFFUSE; static LightSource LIGHTS[MAX_LIGHTS]; static Material MATERIAL; -void initLights() { +void _glInitLights() { static GLfloat ONE [] = {1.0f, 1.0f, 1.0f, 1.0f}; static GLfloat ZERO [] = {0.0f, 0.0f, 0.0f, 1.0f}; static GLfloat PARTIAL [] = {0.2f, 0.2f, 0.2f, 1.0f}; diff --git a/GL/private.h b/GL/private.h index f749f6b..7ebd01b 100644 --- a/GL/private.h +++ b/GL/private.h @@ -86,8 +86,8 @@ PolyList *activePolyList(); PolyList *transparentPolyList(); void initAttributePointers(); -void initContext(); -void initLights(); +void _glInitContext(); +void _glInitLights(); void initImmediateMode(); void initMatrices(); void initFramebuffers(); diff --git a/GL/state.c b/GL/state.c index a207b80..802068f 100644 --- a/GL/state.c +++ b/GL/state.c @@ -233,7 +233,7 @@ GLboolean _glIsColorMaterialEnabled() { static GLfloat CLEAR_COLOUR[3]; -void initContext() { +void _glInitContext() { memset(&GL_CONTEXT, 0, sizeof(pvr_poly_cxt_t)); GL_CONTEXT.list_type = PVR_LIST_OP_POLY;