More robustness against test variations on different platforms.

This commit is contained in:
Matthias Koefferlein 2021-01-19 22:23:02 +01:00
parent 63d19bdb4c
commit 618e1134c4
3 changed files with 7 additions and 2 deletions

View File

@ -756,6 +756,7 @@ D25ViewWidget::do_initialize_gl ()
"uniform vec4 ambient;\n"
"uniform vec3 illum;\n"
"out lowp vec4 vertexColor;\n"
//"in vec3 gl_in;\n"
"uniform mat4 matrix;\n"
"layout (triangles) in;\n"
"layout (triangle_strip, max_vertices = 3) out;\n"

View File

@ -85,7 +85,11 @@ l1.not_interacting(l2, 1, 2).output(304, 0)
l1.not_overlapping(l2, 1).output(310, 0)
l1.not_overlapping(l2, 2).output(311, 0)
l1.not_overlapping(l2, 1..2).output(312, 0)
l1.not_overlapping(l2, eval("2..")).output(313, 0)
if has_unbounded_range
l1.not_overlapping(l2, eval("2..")).output(313, 0)
else
l1.not_overlapping(l2, 2..10000).output(313, 0)
end
l1.not_overlapping(l2, 1, 2).output(314, 0)
l = l1.dup

View File

@ -20,7 +20,7 @@ ar = 4.0/3.0 # "L" shape
l1.with_area_ratio(ar).output(100, 0)
l1.without_area_ratio(ar).output(101, 0)
if has_unbounded_range
l1.with_area_ratio(ar+1e-6..).output(102, 0)
l1.with_area_ratio(eval("ar+1e-6..")).output(102, 0)
else
l1.with_area_ratio(ar+1e-6..10000).output(102, 0)
end