From 55fa5cc85169a3c9cb7312f7bd61fcd06f1b3873 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 11 Nov 2023 11:43:21 +1100 Subject: [PATCH] [client] egl: fix integer division into float --- client/renderers/EGL/desktop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/renderers/EGL/desktop.c b/client/renderers/EGL/desktop.c index f60075c0..bfa20aa3 100644 --- a/client/renderers/EGL/desktop.c +++ b/client/renderers/EGL/desktop.c @@ -515,7 +515,7 @@ bool egl_desktopRender(EGL_Desktop * desktop, unsigned int outputWidth, &desktop->dmaShader : &desktop->shader; const float mapHDRGain = - desktop->maxCLL / desktop->peakLuminance; + (float)desktop->maxCLL / desktop->peakLuminance; EGL_Uniform uniforms[] = {