forked from organicmaps/organicmaps
Review fixes
This commit is contained in:
parent
7c54e2e155
commit
ba103dceb4
1 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue