From eefd0ddd351b4c35e02a2fd6115ec31f6a0a0d02 Mon Sep 17 00:00:00 2001 From: Lynix Date: Wed, 9 Oct 2013 10:08:44 +0200 Subject: [PATCH] Fixed Texture::Update behavior Former-commit-id: 8d1de49226b72b3f1e063b9da87c3391bce9ea95 --- src/Nazara/Renderer/Texture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Nazara/Renderer/Texture.cpp b/src/Nazara/Renderer/Texture.cpp index 853e76c1c..136d1a5ad 100644 --- a/src/Nazara/Renderer/Texture.cpp +++ b/src/Nazara/Renderer/Texture.cpp @@ -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");