Fix T66470 Planar track is not adjustable

The issue was that the shader used was expecting GL_LINES and the points
were using GL_TRIANGLE_FAN.
This commit is contained in:
Clément Foucault
2019-07-07 18:59:19 +02:00
parent 226c6f086a
commit 6b7bc30c64

View File

@@ -1378,10 +1378,11 @@ static void draw_plane_marker_ex(SpaceClip *sc,
immEnd();
}
}
immUnbindProgram();
/* Draw sliders. */
if (is_selected_track) {
immUniform1f("dash_factor", 2.0f); /* Solid line */
immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR);
if (draw_outline) {
immUniformThemeColor(TH_MARKER_OUTLINE);
@@ -1400,9 +1401,8 @@ static void draw_plane_marker_ex(SpaceClip *sc,
px,
shdr_pos);
}
immUnbindProgram();
}
immUnbindProgram();
}
}