From 1c9d0967b179dcdcab27e9a0738ef8f5599770cb Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 5 Dec 2020 13:40:32 +1000 Subject: [PATCH] GPU/OpenGL: Fix shader compile error on GLES --- src/core/gpu_hw_shadergen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/gpu_hw_shadergen.cpp b/src/core/gpu_hw_shadergen.cpp index 3ab08f7b5..a3dd7cdc3 100644 --- a/src/core/gpu_hw_shadergen.cpp +++ b/src/core/gpu_hw_shadergen.cpp @@ -842,7 +842,7 @@ float4 SampleFromVRAM(uint4 texpage, float2 coords) // Extend the UV range to all "upscaled" pixels. This means 1-pixel-high polygon-based // framebuffer effects won't be downsampled. (e.g. Mega Man Legends 2 haze effect) uv_limits.xy *= float(RESOLUTION_SCALE); - uv_limits.zw = (uv_limits.zw * float(RESOLUTION_SCALE + 1)) - float(RESOLUTION_SCALE - 1); + uv_limits.zw = (uv_limits.zw * float(RESOLUTION_SCALE + 1u)) - float(RESOLUTION_SCALE - 1u); #endif #endif