fix flipped tinyrenderer image

This commit is contained in:
Erwin Coumans
2016-06-09 12:12:46 -07:00
parent e0c3392cee
commit 98d2f91f3c
3 changed files with 13 additions and 9 deletions

View File

@@ -580,7 +580,9 @@ void TinyRendererVisualShapeConverter::render(const float viewMat[16], const flo
}
}
//printf("write tga \n");
m_data->m_rgbColorBuffer.write_tga_file("camera.tga");
//m_data->m_rgbColorBuffer.write_tga_file("camera.tga");
// printf("flipped!\n");
m_data->m_rgbColorBuffer.flip_vertically();
}