From 62dc2dbdf330ca67d4c67923ea7a05d8a58e08e6 Mon Sep 17 00:00:00 2001 From: Lynix Date: Sun, 14 Sep 2014 19:50:57 +0200 Subject: [PATCH] Added comments Former-commit-id: 4f315d869ae4041a9ae245ef6b181dc6058f6503 --- src/Nazara/Utility/Image.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Nazara/Utility/Image.cpp b/src/Nazara/Utility/Image.cpp index d59e3a4c6..5fb12ff6f 100644 --- a/src/Nazara/Utility/Image.cpp +++ b/src/Nazara/Utility/Image.cpp @@ -1247,6 +1247,7 @@ void NzImage::Update(const nzUInt8* pixels, const NzBoxui& box, unsigned int src } // Nous n'autorisons pas de modifier plus d'une face du cubemap à la fois (Nous prenons donc la profondeur de base) + ///FIXME: Ce code n'autorise même pas la modification d'une autre face du cubemap Oo if (box.x+box.width > width || box.y+box.height > height || box.z+box.depth > GetLevelSize(m_sharedImage->depth, level)) { NazaraError("Box dimensions are out of bounds"); @@ -1267,6 +1268,7 @@ void NzImage::Update(const nzUInt8* pixels, const NzBoxui& box, unsigned int src void NzImage::Update(const nzUInt8* pixels, const NzRectui& rect, unsigned int z, unsigned int srcWidth, unsigned int srcHeight, nzUInt8 level) { + ///FIXME: Cette surcharge possède-t-elle la moindre utilité ? (Update(pixels, NzBoxui(rect.x, rect.y, z, rect.width, rect.height, 1), srcWidth, ..) devrait donner le même résultat #if NAZARA_UTILITY_SAFE if (m_sharedImage == &emptyImage) {