Get rid of erroneous int casts

This commit is contained in:
rozlette 2022-06-23 21:15:12 -05:00 committed by louist103
parent efd4b26f3d
commit 65016499ab
1 changed files with 4 additions and 4 deletions

View File

@ -354,10 +354,10 @@ namespace SohImGui {
}
for (size_t pixel = 0; pixel < texBuffer.size() / 4; pixel++) {
texBuffer[pixel * 4 + 0] *= (uint8_t)tint.x;
texBuffer[pixel * 4 + 1] *= (uint8_t)tint.y;
texBuffer[pixel * 4 + 2] *= (uint8_t)tint.z;
texBuffer[pixel * 4 + 3] *= (uint8_t)tint.w;
texBuffer[pixel * 4 + 0] *= tint.x;
texBuffer[pixel * 4 + 1] *= tint.y;
texBuffer[pixel * 4 + 2] *= tint.z;
texBuffer[pixel * 4 + 3] *= tint.w;
}
const auto asset = new GameAsset{ api->new_texture() };