Merge pull request #1808 from JonathanAnderson/patch-1

Fallback to non gr3 surface call
This commit is contained in:
Daniel Schwabeneder 2018-11-02 13:05:36 +01:00 committed by GitHub
commit c6c4becf7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1058,7 +1058,11 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas)
if length(x) == length(y) == length(z) if length(x) == length(y) == length(z)
GR.trisurface(x, y, z) GR.trisurface(x, y, z)
else else
GR.gr3.surface(x, y, z, GR.OPTION_COLORED_MESH) try
GR.gr3.surface(x, y, z, GR.OPTION_COLORED_MESH)
catch
GR.surface(x, y, z, GR.OPTION_COLORED_MESH)
end
end end
else else
GR.setfillcolorind(0) GR.setfillcolorind(0)