summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/webgl/gl.js
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-11-06 22:15:00 +0000
committerKarl Berry <karl@freefriends.org>2019-11-06 22:15:00 +0000
commit8d918f88e6d576dc1612e5625a0ad802d17c8e13 (patch)
tree7866459f67ba7f4c37d87cf9ea8846b37915fadc /Build/source/utils/asymptote/webgl/gl.js
parenteb21dd9dc04d18b2ceda665ab6272d4a97926f38 (diff)
asy 2.60 sources
git-svn-id: svn://tug.org/texlive/trunk@52659 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/webgl/gl.js')
-rw-r--r--Build/source/utils/asymptote/webgl/gl.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/Build/source/utils/asymptote/webgl/gl.js b/Build/source/utils/asymptote/webgl/gl.js
index 79d06c81373..c5e07751ed2 100644
--- a/Build/source/utils/asymptote/webgl/gl.js
+++ b/Build/source/utils/asymptote/webgl/gl.js
@@ -316,8 +316,6 @@ function drawBuffer(data,shader,indices=data.indices)
gl.drawElements(normal ? gl.TRIANGLES : (pixel ? gl.POINTS : gl.LINES),
indices.length,
indexExt ? gl.UNSIGNED_INT : gl.UNSIGNED_SHORT,0);
- if(embedded)
- context.drawImage(offscreen,0,0);
}
class vertexBuffer {
@@ -2098,6 +2096,11 @@ function draw()
drawBuffers();
+ if(embedded) {
+ context.clearRect(0,0,canvas.width,canvas.height);
+ context.drawImage(offscreen,0,0);
+ }
+
remesh=false;
}