Fix renderergl2 warnings
This commit is contained in:
parent
d38039f975
commit
6665ea4a49
4 changed files with 7 additions and 9 deletions
|
@ -599,9 +599,7 @@ static void R_LoadVisibility( lump_t *l ) {
|
|||
int len;
|
||||
byte *buf;
|
||||
|
||||
len = ( s_worldData.numClusters + 63 ) & ~63;
|
||||
|
||||
len = l->filelen;
|
||||
len = l->filelen;
|
||||
if ( !len ) {
|
||||
return;
|
||||
}
|
||||
|
@ -1473,7 +1471,7 @@ int R_StitchPatches( int grid1num, int grid2num ) {
|
|||
|
||||
for (m = 0; m < 2; m++) {
|
||||
|
||||
if ( grid2->width >= MAX_GRID_SIZE )
|
||||
if ( !grid2 || grid2->width >= MAX_GRID_SIZE )
|
||||
break;
|
||||
if (m) offset2 = (grid2->height-1) * grid2->width;
|
||||
else offset2 = 0;
|
||||
|
@ -1517,7 +1515,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;
|
||||
|
@ -1572,7 +1570,7 @@ int R_StitchPatches( int grid1num, int grid2num ) {
|
|||
for (k = grid1->height-1; k > 1; k -= 2) {
|
||||
for (m = 0; m < 2; m++) {
|
||||
|
||||
if ( grid2->width >= MAX_GRID_SIZE )
|
||||
if (!grid2 || grid2->width >= MAX_GRID_SIZE )
|
||||
break;
|
||||
if (m) offset2 = (grid2->height-1) * grid2->width;
|
||||
else offset2 = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue