From 66f2bc6d573dfd067c79069edce96703e9c33690 Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Sun, 6 Feb 2011 11:39:06 +0000 Subject: [PATCH] Flip iteration order in LOS texture blur to improve performance This was SVN commit r8892. --- source/graphics/LOSTexture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/graphics/LOSTexture.cpp b/source/graphics/LOSTexture.cpp index 46a26c09c8..8e44a00bdd 100644 --- a/source/graphics/LOSTexture.cpp +++ b/source/graphics/LOSTexture.cpp @@ -217,9 +217,9 @@ void CLOSTexture::GenerateBitmap(ICmpRangeManager::CLosQuerier los, u8* losData, // Vertical blur: - for (size_t i = 0; i < w; ++i) + for (size_t j = 0; j < h; ++j) { - for (size_t j = 0; j < h; ++j) + for (size_t i = 0; i < w; ++i) { u8* d = &losData[i+j*rowSize]; *d = (