Fixed Texture::Download with mipmaps
Former-commit-id: 1c2f6bd9fdd580e3fd5a6425bfa49251766676d2
This commit is contained in:
@@ -257,7 +257,7 @@ bool NzTexture::Download(NzImage* image) const
|
|||||||
// Téléchargement...
|
// Téléchargement...
|
||||||
NzOpenGL::BindTexture(m_impl->type, m_impl->id);
|
NzOpenGL::BindTexture(m_impl->type, m_impl->id);
|
||||||
for (nzUInt8 level = 0; level < m_impl->levelCount; ++level)
|
for (nzUInt8 level = 0; level < m_impl->levelCount; ++level)
|
||||||
glGetTexImage(NzOpenGL::TextureTarget[m_impl->type], level, format.dataFormat, format.dataType, image->GetPixels(level));
|
glGetTexImage(NzOpenGL::TextureTarget[m_impl->type], level, format.dataFormat, format.dataType, image->GetPixels(0, 0, 0, level));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user