mirror of
https://github.com/drewcassidy/quicktex.git
synced 2024-09-13 06:37:34 +00:00
MSVC is a joke
For some reason index variables need to be signed?
This commit is contained in:
parent
6afe4851bd
commit
f77ea3be0f
@ -56,8 +56,9 @@ template <typename T> class BlockEncoder : public Encoder<T> {
|
||||
// As a result, this is sometimes left as a serial operation despite being embarassingly parallelizable
|
||||
// threshold for number of blocks before multithreading is set by overriding MTThreshold()
|
||||
#pragma omp parallel for if (blocks_x * blocks_y >= MTThreshold())
|
||||
for (unsigned y = 0; y < blocks_y; y++) {
|
||||
for (unsigned x = 0; x < blocks_x; x++) {
|
||||
for (int y = 0; y < (int)blocks_y; y++) {
|
||||
for (int x = 0; x < (int)blocks_x; x++) {
|
||||
// index variables have to be signed for MSVC for some reason
|
||||
auto pixels = decoded.get_block<BlockWidth, BlockHeight>(x, y);
|
||||
auto block = EncodeBlock(pixels);
|
||||
encoded.set_block(x, y, block);
|
||||
|
Loading…
Reference in New Issue
Block a user