changeset 19 | fcece45ef507 |
parent 18 | 2f34d5167611 |
child 23 | 89e065397ea6 |
--- a/src/opengl/qgl.cpp Fri Apr 16 15:50:13 2010 +0300 +++ b/src/opengl/qgl.cpp Mon May 03 13:17:34 2010 +0300 @@ -5451,7 +5451,7 @@ quint32 level = 0; quint32 width = pvrHeader->width; quint32 height = pvrHeader->height; - while (bufferSize > 0 && level < pvrHeader->mipMapCount) { + while (bufferSize > 0 && level <= pvrHeader->mipMapCount) { quint32 size = (qMax(width, minWidth) * qMax(height, minHeight) * pvrHeader->bitsPerPixel) / 8;