1
0
forked from 0ad/0ad

Flip iteration order in LOS texture blur to improve performance

This was SVN commit r8892.
This commit is contained in:
Ykkrosh 2011-02-06 11:39:06 +00:00
parent 57e5bb878a
commit 66f2bc6d57

View File

@ -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 = (