mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-02-02 14:31:36 +00:00
Initialise these to 0 just to stop GCC 4.4 from complaining.
This should be okay since 0 generally means "nothing" for these, and they should always be set before being used later on.
This commit is contained in:
parent
c70cf4806b
commit
66930a0277
1 changed files with 5 additions and 5 deletions
|
@ -823,7 +823,7 @@ EXPORT boolean HWRAPI(LoadShaders) (void)
|
||||||
#ifdef GL_SHADERS
|
#ifdef GL_SHADERS
|
||||||
GLuint gl_vertShader, gl_fragShader;
|
GLuint gl_vertShader, gl_fragShader;
|
||||||
GLint i, result;
|
GLint i, result;
|
||||||
|
|
||||||
if (!pglUseProgram) return false;
|
if (!pglUseProgram) return false;
|
||||||
|
|
||||||
gl_customvertexshaders[0] = NULL;
|
gl_customvertexshaders[0] = NULL;
|
||||||
|
@ -2002,11 +2002,11 @@ EXPORT void HWRAPI(RenderBatches) (int *sNumPolys, int *sNumVerts, int *sNumCall
|
||||||
boolean stopFlag = false;
|
boolean stopFlag = false;
|
||||||
boolean changeState = false;
|
boolean changeState = false;
|
||||||
boolean changeShader = false;
|
boolean changeShader = false;
|
||||||
GLuint nextShader;
|
GLuint nextShader = 0U;
|
||||||
boolean changeTexture = false;
|
boolean changeTexture = false;
|
||||||
GLuint nextTexture;
|
GLuint nextTexture = 0U;
|
||||||
boolean changePolyFlags = false;
|
boolean changePolyFlags = false;
|
||||||
FBITFIELD nextPolyFlags;
|
FBITFIELD nextPolyFlags = 0U;
|
||||||
boolean changeSurfaceInfo = false;
|
boolean changeSurfaceInfo = false;
|
||||||
FSurfaceInfo nextSurfaceInfo;
|
FSurfaceInfo nextSurfaceInfo;
|
||||||
|
|
||||||
|
@ -2307,7 +2307,7 @@ EXPORT void HWRAPI(DrawPolygon) (FSurfaceInfo *pSurf, FOutVector *pOutVerts, FUI
|
||||||
|
|
||||||
pglColor4ubv((GLubyte*)&pSurf->PolyColor.s);
|
pglColor4ubv((GLubyte*)&pSurf->PolyColor.s);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tint color
|
// Tint color
|
||||||
tint.red = byte2float[pSurf->TintColor.s.red];
|
tint.red = byte2float[pSurf->TintColor.s.red];
|
||||||
tint.green = byte2float[pSurf->TintColor.s.green];
|
tint.green = byte2float[pSurf->TintColor.s.green];
|
||||||
|
|
Loading…
Reference in a new issue