diff options
author | Karl Berry <karl@freefriends.org> | 2020-03-26 21:33:06 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-03-26 21:33:06 +0000 |
commit | 9d8ff0db40a3ccd5826fee73d7e3fb916b9f1841 (patch) | |
tree | 3b9d9b28b50a95993e93aef2033b44aee075a2c6 /Build/source/utils/asymptote/drawsurface.cc | |
parent | 43d422c5abd7a05708ebb2dab98b18043436fd08 (diff) |
asy 2.65 sources
git-svn-id: svn://tug.org/texlive/trunk@54566 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/drawsurface.cc')
-rw-r--r-- | Build/source/utils/asymptote/drawsurface.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Build/source/utils/asymptote/drawsurface.cc b/Build/source/utils/asymptote/drawsurface.cc index 921541a84f5..34ea0a4aa40 100644 --- a/Build/source/utils/asymptote/drawsurface.cc +++ b/Build/source/utils/asymptote/drawsurface.cc @@ -262,13 +262,15 @@ void drawBezierPatch::render(double size2, const triple& b, const triple& B, } bool offscreen; - if(billboard) { + if(gl::exporting) + offscreen=false; + else if(billboard) { drawElement::centerIndex=centerIndex; BB.init(center); offscreen=bbox2(Min,Max,BB).offscreen(); } else offscreen=bbox2(Min,Max).offscreen(); - + if(offscreen) { // Fully offscreen S.Onscreen=false; S.data.clear(); @@ -503,7 +505,9 @@ void drawBezierTriangle::render(double size2, const triple& b, const triple& B, } bool offscreen; - if(billboard) { + if(gl::exporting) + offscreen=false; + else if(billboard) { drawElement::centerIndex=centerIndex; BB.init(center); offscreen=bbox2(Min,Max,BB).offscreen(); @@ -970,7 +974,7 @@ void drawTriangles::render(double size2, const triple& b, transparent=diffuse.A < 1.0; - if(bbox2(Min,Max).offscreen()) { // Fully offscreen + if(!gl::exporting && bbox2(Min,Max).offscreen()) { // Fully offscreen R.Onscreen=false; R.data.clear(); return; |