Merge pull request #247 from Lectem/patch-2
Fix compression for non multiple of 4 texture size
This commit is contained in:
commit
cec8e7159a
@ -262,8 +262,8 @@ void FloatColorCompressorTask(void * data, int i)
|
|||||||
Vector4 colors[16];
|
Vector4 colors[16];
|
||||||
float weights[16];
|
float weights[16];
|
||||||
|
|
||||||
const uint block_w = min(d->w, 4U);
|
const uint block_w = min(d->w - block_x * 4U, 4U);
|
||||||
const uint block_h = min(d->h, 4U);
|
const uint block_h = min(d->h - block_y * 4U, 4U);
|
||||||
|
|
||||||
uint x, y;
|
uint x, y;
|
||||||
for (y = 0; y < block_h; y++) {
|
for (y = 0; y < block_h; y++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user