Skip to content

Commit

Permalink
Fix renderergl1 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
timangus committed Sep 1, 2014
1 parent eeaf022 commit d38039f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion code/renderergl1/tr_bsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,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;
Expand Down
2 changes: 1 addition & 1 deletion code/renderergl1/tr_model_iqm.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,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;
Expand Down
2 changes: 1 addition & 1 deletion code/renderergl1/tr_shade_calc.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,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
Expand Down

0 comments on commit d38039f

Please sign in to comment.