From f1fba1ed14c1d2bb6d72975465bf1b20dfc4453a Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Mon, 23 Oct 2023 21:23:09 +0100 Subject: [PATCH] Fix shader type conversion. --- glsl/combined.vert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glsl/combined.vert b/glsl/combined.vert index 602fcf690f..b408320eb7 100644 --- a/glsl/combined.vert +++ b/glsl/combined.vert @@ -58,7 +58,7 @@ void main() vDepthMask = SelectChannelMask((aVertexAttributes >> 3) & 0x07u); vChannelSampler = (aVertexAttributes >> 6) & 0x07u; vDepthSampler = (aVertexAttributes >> 9) & 0x07u; - vTexPalette = (aVertexAttributes >> 16) / PaletteRows; + vTexPalette = float(aVertexAttributes >> 16) / PaletteRows; vTint = aVertexTint; }