diff options
author | Tim Angus <tim@ngus.net> | 2014-09-01 11:31:39 +0100 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2015-03-17 11:38:07 +0000 |
commit | 61917e9828e2429064de713f43a398f083e6885e (patch) | |
tree | 4d87a6f55b485ed8c659e21c21b3bbc25e9737ab | |
parent | 90aef5138379b40146901a9d7fe4b5265c5e26e0 (diff) |
Fix renderergl1 warnings
-rw-r--r-- | src/renderergl1/tr_bsp.c | 2 | ||||
-rw-r--r-- | src/renderergl1/tr_model_iqm.c | 2 | ||||
-rw-r--r-- | src/renderergl1/tr_shade_calc.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/renderergl1/tr_bsp.c b/src/renderergl1/tr_bsp.c index dc695cce..9463784e 100644 --- a/src/renderergl1/tr_bsp.c +++ b/src/renderergl1/tr_bsp.c @@ -1071,7 +1071,7 @@ int R_StitchPatches( int grid1num, int grid2num ) { } for (m = 0; m < 2; m++) { - if (grid2->height >= MAX_GRID_SIZE) + if (!grid2 || grid2->height >= MAX_GRID_SIZE) break; if (m) offset2 = grid2->width-1; else offset2 = 0; diff --git a/src/renderergl1/tr_model_iqm.c b/src/renderergl1/tr_model_iqm.c index 4f4c5173..7e0e12e4 100644 --- a/src/renderergl1/tr_model_iqm.c +++ b/src/renderergl1/tr_model_iqm.c @@ -145,7 +145,7 @@ qboolean R_LoadIQM( model_t *mod, void *buffer, int filesize, const char *mod_na unsigned short *framedata; char *str; int i, j; - float jointInvMats[IQM_MAX_JOINTS * 12]; + float jointInvMats[IQM_MAX_JOINTS * 12] = {0.0f}; float *mat, *matInv; size_t size, joint_names; iqmData_t *iqmData; diff --git a/src/renderergl1/tr_shade_calc.c b/src/renderergl1/tr_shade_calc.c index a42a86a0..21c459df 100644 --- a/src/renderergl1/tr_shade_calc.c +++ b/src/renderergl1/tr_shade_calc.c @@ -772,7 +772,7 @@ void RB_CalcModulateAlphasByFog( unsigned char *colors ) { */ void RB_CalcModulateRGBAsByFog( unsigned char *colors ) { int i; - float texCoords[SHADER_MAX_VERTEXES][2]; + float texCoords[SHADER_MAX_VERTEXES][2] = {{0.0f}}; // calculate texcoords so we can derive density // this is not wasted, because it would only have |