From c6b6af668d8cdee02f7c65059141bcf4796f18f2 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Thu, 18 Nov 2021 08:04:14 +0100 Subject: [PATCH] Fix shader compilation on some GPUs Some GPUs (rightly) complain about the difference between a float and an int. Fixes #10837 --- plugins/SimulationView/layers3d.shader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/SimulationView/layers3d.shader b/plugins/SimulationView/layers3d.shader index dc5aee2d1c..a3be25cf01 100644 --- a/plugins/SimulationView/layers3d.shader +++ b/plugins/SimulationView/layers3d.shader @@ -111,7 +111,7 @@ vertex41core = float clamp(float v) { - float t = v < 0 ? 0 : v; + float t = v < 0.0 ? 0.0 : v; return t > 1.0 ? 1.0 : t; }