Fixed Texture::Update behavior

Former-commit-id: 8d1de49226b72b3f1e063b9da87c3391bce9ea95
This commit is contained in:
Lynix 2013-10-09 10:08:44 +02:00
parent 282291ffad
commit eefd0ddd35
1 changed files with 2 additions and 2 deletions

View File

@ -970,7 +970,7 @@ bool NzTexture::Update(const NzImage& image, const NzBoxui& box, nzUInt8 level)
}
#endif
const nzUInt8* pixels = image.GetConstPixels(box.x, box.y, box.z, level);
const nzUInt8* pixels = image.GetConstPixels(0, 0, 0, level);
if (!pixels)
{
NazaraError("Failed to access image's pixels");
@ -996,7 +996,7 @@ bool NzTexture::Update(const NzImage& image, const NzRectui& rect, unsigned int
}
#endif
const nzUInt8* pixels = image.GetConstPixels(rect.x, rect.y, z, level);
const nzUInt8* pixels = image.GetConstPixels(0, 0, 0, level);
if (!pixels)
{
NazaraError("Failed to access image's pixels");