Review fixes

This commit is contained in:
Roman Kuznetsov 2015-10-23 14:09:31 +03:00 committed by r.kuznetsov
parent 7c54e2e155
commit ba103dceb4

View file

@ -147,12 +147,12 @@ void ColorPalette::UploadResources(ref_ptr<Texture> texture)
for (size_t row = 0; row < kResourceSize; row++)
{
for (size_t colomn = 0; colomn < kResourceSize; colomn++)
for (size_t column = 0; column < kResourceSize; column++)
{
pointer[row * byteStride + colomn * kBytesPerPixel] = red;
pointer[row * byteStride + colomn * kBytesPerPixel + 1] = green;
pointer[row * byteStride + colomn * kBytesPerPixel + 2] = blue;
pointer[row * byteStride + colomn * kBytesPerPixel + 3] = alpha;
pointer[row * byteStride + column * kBytesPerPixel] = red;
pointer[row * byteStride + column * kBytesPerPixel + 1] = green;
pointer[row * byteStride + column * kBytesPerPixel + 2] = blue;
pointer[row * byteStride + column * kBytesPerPixel + 3] = alpha;
}
}