TINYGL: Move remaining line counter decrement near y increment
Readability-only change. Both represent the same notion, and nb_lines is only accessed as loop condition.
This commit is contained in:
parent
a6af3a38a3
commit
218d3214d7
1 changed files with 1 additions and 1 deletions
|
@ -378,7 +378,6 @@ void FrameBuffer::fillTriangle(ZBufferPoint *p0, ZBufferPoint *p1, ZBufferPoint
|
||||||
|
|
||||||
// we draw all the scan line of the part
|
// we draw all the scan line of the part
|
||||||
while (nb_lines > 0) {
|
while (nb_lines > 0) {
|
||||||
nb_lines--;
|
|
||||||
int x = x1;
|
int x = x1;
|
||||||
{
|
{
|
||||||
if (kDrawLogic == DRAW_DEPTH_ONLY ||
|
if (kDrawLogic == DRAW_DEPTH_ONLY ||
|
||||||
|
@ -633,6 +632,7 @@ void FrameBuffer::fillTriangle(ZBufferPoint *p0, ZBufferPoint *p1, ZBufferPoint
|
||||||
|
|
||||||
if (kDrawLogic == DRAW_SHADOW || kDrawLogic == DRAW_SHADOW_MASK)
|
if (kDrawLogic == DRAW_SHADOW || kDrawLogic == DRAW_SHADOW_MASK)
|
||||||
pm1 = pm1 + xsize;
|
pm1 = pm1 + xsize;
|
||||||
|
nb_lines--;
|
||||||
y++;
|
y++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue