rearranged the failure handling code

git-svn-id: svn://anubis/fart/trunk@241 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
Josh Holtrop committed 2009-04-15 00:58:35 +00:00
1 parent f267a8fd86
commit d98c26da66
2 files changed
+5 -6

No files matched your search

+2 -3
View File
@@ -195,13 +195,12 @@ int main(int argc, char * argv[])
else
{
/* "sequential" version */
unsigned char * pixel = &data[0];
for (int i = 0; i < height; i++)
{
for (int j = 0; j < width; j++)
{
scene.renderPixel(j, i, pixel);
pixel += 3;
int pixel = i * width + j;
scene.renderPixel(j, i, &data[3 * pixel]);
}
}
}