2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 09:47:43 +00:00

Depth buffer fix

This commit is contained in:
Jack Andersen
2016-04-01 14:07:07 -10:00
parent b175df5154
commit 58c85d8c30
6 changed files with 9 additions and 6 deletions

View File

@@ -738,7 +738,7 @@ bool TXTR::CookPC(const hecl::ProjectPath& inPath, const hecl::ProjectPath& outP
}
/* Read and make RGBA */
for (png_uint_32 r=0 ; r<height ; ++r)
for (int r=height-1 ; r>=0 ; --r)
{
png_read_row(pngRead, rowBuf.get(), nullptr);
switch (colorType)