From 653dd42e871f05c0b54001caad4ceb38663a4051 Mon Sep 17 00:00:00 2001 From: Jim Watson Date: Sat, 24 Apr 2021 18:56:08 +0100 Subject: [PATCH] Fix for crashes on Mac 10.13 in 2010 era hardware Not sure I understand why this works - size_x/y are for the end of the line not the start --- plugins/SimulationView/layers3d.shader | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/SimulationView/layers3d.shader b/plugins/SimulationView/layers3d.shader index 6a2ff63b8e..5797838739 100644 --- a/plugins/SimulationView/layers3d.shader +++ b/plugins/SimulationView/layers3d.shader @@ -296,8 +296,8 @@ geometry41core = if ((u_show_starts == 1) && (v_prev_line_type[0] != 1) && (v_line_type[0] == 1)) { - float w = v_line_dim[0].x / 2; - float h = v_line_dim[0].y / 2; + float w = size_x; + float h = size_y; myEmitVertex(v_vertex[0] + vec3( w, h, w), u_starts_color, normalize(vec3( 1.0, 1.0, 1.0)), viewProjectionMatrix * (gl_in[0].gl_Position + vec4( w, h, w, 0.0))); // Front-top-left myEmitVertex(v_vertex[0] + vec3(-w, h, w), u_starts_color, normalize(vec3(-1.0, 1.0, 1.0)), viewProjectionMatrix * (gl_in[0].gl_Position + vec4(-w, h, w, 0.0))); // Front-top-right