mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue