Fix bug with PNG image loader.

This commit is contained in:
Pavel Krajcevski 2012-09-18 10:59:39 -04:00
parent 8bea381389
commit e4c8708a4a

View file

@ -108,7 +108,7 @@ bool ImageLoaderPNG::ReadData() {
png_read_row(png_ptr, rowData, NULL);
unsigned int rowOffset = i * m_Height;
unsigned int rowOffset = i * m_Width;
unsigned int byteIdx = 0;
for(int j = 0; j < m_Width; j++) {
@ -132,7 +132,7 @@ bool ImageLoaderPNG::ReadData() {
png_read_row(png_ptr, rowData, NULL);
unsigned int rowOffset = i * m_Height;
unsigned int rowOffset = i * m_Width;
unsigned int byteIdx = 0;
for(int j = 0; j < m_Width; j++) {
@ -159,7 +159,7 @@ bool ImageLoaderPNG::ReadData() {
png_read_row(png_ptr, rowData, NULL);
unsigned int rowOffset = i * m_Height;
unsigned int rowOffset = i * m_Width;
unsigned int byteIdx = 0;
for(int j = 0; j < m_Width; j++) {
@ -183,7 +183,7 @@ bool ImageLoaderPNG::ReadData() {
png_read_row(png_ptr, rowData, NULL);
unsigned int rowOffset = i * m_Height;
unsigned int rowOffset = i * m_Width;
unsigned int byteIdx = 0;
for(int j = 0; j < m_Width; j++) {