mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-28 16:51:59 +08:00
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:
parent
6a988c8fa0
commit
c6b6af668d
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user