mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Small order-of-operations fix.
This commit is contained in:
parent
2fe76b39e7
commit
11a14c077e
1 changed files with 2 additions and 2 deletions
|
@ -295,7 +295,7 @@ R_BuildLightMap (msurface_t *surf, byte * dest, int stride)
|
||||||
bl++;
|
bl++;
|
||||||
*dest++ = min (*bl >> shift, 255);
|
*dest++ = min (*bl >> shift, 255);
|
||||||
bl++;
|
bl++;
|
||||||
*dest++; // set to 255 if RGBA internal format is wanted
|
(*dest)++; // set to 255 if RGBA internal format is wanted
|
||||||
// instead of RGB
|
// instead of RGB
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -316,7 +316,7 @@ R_BuildLightMap (msurface_t *surf, byte * dest, int stride)
|
||||||
for (i = 0; i < tmax; i++, dest += stride) {
|
for (i = 0; i < tmax; i++, dest += stride) {
|
||||||
for (j = 0; j < smax; j++) {
|
for (j = 0; j < smax; j++) {
|
||||||
*dest++ = min (*bl >> shift, 255);
|
*dest++ = min (*bl >> shift, 255);
|
||||||
*bl++;
|
(*bl)++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue