From f11496643290d0f3413ec603c5d9ef0e3416f7ec Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 17 Oct 2017 00:21:02 +0200 Subject: [PATCH] Reverse the ac3/ac4 coefficients, too. --- rans.shader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rans.shader b/rans.shader index 925543e..5b13d7e 100644 --- a/rans.shader +++ b/rans.shader @@ -148,7 +148,7 @@ void encode_8(uint streamgroup_num, uint coeff_row, layout(r8i) restrict readonl uint sign_bias = ransdist[enc.lut_base + 255].x + ransdist[enc.lut_base + 255].y; - for (uint subblock_idx = BLOCKS_PER_STREAM; subblock_idx --> 0; ) { + for (uint subblock_idx = 0; subblock_idx < BLOCKS_PER_STREAM; ++subblock_idx) { // TODO: Use SSBOs instead of a texture? uint x = (streamgroup_num * BLOCKS_PER_STREAM + subblock_idx) % 160; uint y = (streamgroup_num * BLOCKS_PER_STREAM + subblock_idx) / 160; -- 2.39.2