mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-24 05:01:40 +00:00
Fix renderergl1 warnings
This commit is contained in:
parent
eeaf0227f7
commit
d38039f975
3 changed files with 3 additions and 3 deletions
|
@ -1070,7 +1070,7 @@ int R_StitchPatches( int grid1num, int grid2num ) {
|
||||||
}
|
}
|
||||||
for (m = 0; m < 2; m++) {
|
for (m = 0; m < 2; m++) {
|
||||||
|
|
||||||
if (grid2->height >= MAX_GRID_SIZE)
|
if (!grid2 || grid2->height >= MAX_GRID_SIZE)
|
||||||
break;
|
break;
|
||||||
if (m) offset2 = grid2->width-1;
|
if (m) offset2 = grid2->width-1;
|
||||||
else offset2 = 0;
|
else offset2 = 0;
|
||||||
|
|
|
@ -144,7 +144,7 @@ qboolean R_LoadIQM( model_t *mod, void *buffer, int filesize, const char *mod_na
|
||||||
unsigned short *framedata;
|
unsigned short *framedata;
|
||||||
char *str;
|
char *str;
|
||||||
int i, j;
|
int i, j;
|
||||||
float jointInvMats[IQM_MAX_JOINTS * 12];
|
float jointInvMats[IQM_MAX_JOINTS * 12] = {0.0f};
|
||||||
float *mat, *matInv;
|
float *mat, *matInv;
|
||||||
size_t size, joint_names;
|
size_t size, joint_names;
|
||||||
iqmData_t *iqmData;
|
iqmData_t *iqmData;
|
||||||
|
|
|
@ -771,7 +771,7 @@ void RB_CalcModulateAlphasByFog( unsigned char *colors ) {
|
||||||
*/
|
*/
|
||||||
void RB_CalcModulateRGBAsByFog( unsigned char *colors ) {
|
void RB_CalcModulateRGBAsByFog( unsigned char *colors ) {
|
||||||
int i;
|
int i;
|
||||||
float texCoords[SHADER_MAX_VERTEXES][2];
|
float texCoords[SHADER_MAX_VERTEXES][2] = {{0.0f}};
|
||||||
|
|
||||||
// calculate texcoords so we can derive density
|
// calculate texcoords so we can derive density
|
||||||
// this is not wasted, because it would only have
|
// this is not wasted, because it would only have
|
||||||
|
|
Loading…
Reference in a new issue