Skip to content

Commit

Permalink
Fix for BC1_RGB output.
Browse files Browse the repository at this point in the history
  • Loading branch information
akb825 committed May 11, 2020
1 parent 2e1c7b7 commit 1250fc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/S3tcConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static void createWeights(float* weights, const ColorRGBAf* blockColors, bool we
else
{
for (unsigned int i = 0; i < S3tcConverter::blockDim*S3tcConverter::blockDim; ++i)
weights[i] = 1.0f;;
weights[i] = 1.0f;
}
}

Expand Down Expand Up @@ -179,6 +179,7 @@ void S3tcConverter::process(unsigned int x, unsigned int y, ThreadData*)
Bc1Converter::Bc1Converter(const Texture& texture, const Image& image, Texture::Quality quality)
: S3tcConverter(texture, image, 8, quality)
{
icbc::init();
}

void Bc1Converter::compressBlock(void* block, ColorRGBAf* blockColors)
Expand Down

0 comments on commit 1250fc5

Please sign in to comment.