mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Remove implicit casts and comparisons of int to float
We can't change this index to an integer, because varying variables can't be integer, even though this variable will only really be tested on vertex level. Not sure if varying was the right choice, but I don't want to change that. This prevents a crash, probably only occurring on certain GPUs. Contributes to issue CURA-8657.
This commit is contained in:
parent
51c5572f0f
commit
dc28370178
4 changed files with 8 additions and 8 deletions
|
@ -54,7 +54,7 @@ fragment =
|
|||
|
||||
void main()
|
||||
{
|
||||
if (u_drawRange.x >= 0 && u_drawRange.y >= 0 && (v_vertex_index < u_drawRange.x || v_vertex_index > u_drawRange.y))
|
||||
if (u_drawRange.x >= 0.0 && u_drawRange.y >= 0.0 && (v_vertex_index < u_drawRange.x || v_vertex_index > u_drawRange.y))
|
||||
{
|
||||
discard;
|
||||
}
|
||||
|
@ -98,7 +98,7 @@ u_show_helpers = 1
|
|||
u_show_skin = 1
|
||||
u_show_infill = 1
|
||||
|
||||
u_drawRange = [-1, -1]
|
||||
u_drawRange = [-1.0, -1.0]
|
||||
|
||||
[bindings]
|
||||
u_modelMatrix = model_matrix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue