From f723fa6db95cb058dc4ece5dc6f2696e2fbadc33 Mon Sep 17 00:00:00 2001 From: lawnjelly Date: Thu, 11 Mar 2021 14:26:54 +0000 Subject: [PATCH] Batching - fix basis polarity in large fvf Slight technical hitch, the basis was reversed that was sent to the shader, so rotations were opposite. This PR reverses polarity of the basis to be correct. --- drivers/gles_common/rasterizer_canvas_batcher.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gles_common/rasterizer_canvas_batcher.h b/drivers/gles_common/rasterizer_canvas_batcher.h index 0fe00f6a16c..d183c3ffe9a 100644 --- a/drivers/gles_common/rasterizer_canvas_batcher.h +++ b/drivers/gles_common/rasterizer_canvas_batcher.h @@ -2061,9 +2061,9 @@ bool C_PREAMBLE::_prefill_rect(RasterizerCanvas::Item::CommandRect *rect, FillSt const Transform2D &tr = r_fill_state.transform_combined; pBT[0].translate.set(tr.elements[2]); - // could do swizzling in shader? - pBT[0].basis[0].set(tr.elements[0][0], tr.elements[1][0]); - pBT[0].basis[1].set(tr.elements[0][1], tr.elements[1][1]); + + pBT[0].basis[0].set(tr.elements[0][0], tr.elements[0][1]); + pBT[0].basis[1].set(tr.elements[1][0], tr.elements[1][1]); pBT[1] = pBT[0]; pBT[2] = pBT[0];