summaryrefslogtreecommitdiff
path: root/graphics/asymptote/drawpath3.cc
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/drawpath3.cc')
-rw-r--r--graphics/asymptote/drawpath3.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/graphics/asymptote/drawpath3.cc b/graphics/asymptote/drawpath3.cc
index 2ba8d7c6a8..07c64ef1a9 100644
--- a/graphics/asymptote/drawpath3.cc
+++ b/graphics/asymptote/drawpath3.cc
@@ -87,7 +87,9 @@ void drawPath3::render(double size2, const triple& b, const triple& B,
setMaterial(material1Data,drawMaterial1);
bool offscreen;
- if(billboard) {
+ if(gl::exporting)
+ offscreen=false;
+ else if(billboard) {
drawElement::centerIndex=centerIndex;
BB.init(center);
offscreen=bbox2(Min,Max,BB).offscreen();
@@ -263,7 +265,7 @@ void drawPixel::render(double size2, const triple& b, const triple& B,
setMaterial(material0Data,drawMaterial0);
- if(bbox2(Min,Max).offscreen()) { // Fully offscreen
+ if(!gl::exporting && bbox2(Min,Max).offscreen()) { // Fully offscreen
R.data.clear();
return;
}