Fix shader compilation on some GPUs

Some GPUs (rightly) complain about the difference between a float and an int. Fixes #10837
This commit is contained in:
fieldOfView 2021-11-18 08:04:14 +01:00
parent 6a988c8fa0
commit c6b6af668d

View file

@ -111,7 +111,7 @@ vertex41core =
float clamp(float v) 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; return t > 1.0 ? 1.0 : t;
} }