diff options
author | Karl Berry <karl@freefriends.org> | 2019-10-21 17:29:28 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-10-21 17:29:28 +0000 |
commit | ef2ee92ba9a13edf8ae31e3941f8a47dae5e928e (patch) | |
tree | 5bef718b5f900818966788c4553a415a9cd7d3b9 /Build/source/utils/asymptote/bezierpatch.h | |
parent | 9474b7db3211261c19db160af542aa1a855659b6 (diff) |
asy 2.59 sources
git-svn-id: svn://tug.org/texlive/trunk@52473 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/bezierpatch.h')
-rw-r--r-- | Build/source/utils/asymptote/bezierpatch.h | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/Build/source/utils/asymptote/bezierpatch.h b/Build/source/utils/asymptote/bezierpatch.h index e637eef4677..5bea5868027 100644 --- a/Build/source/utils/asymptote/bezierpatch.h +++ b/Build/source/utils/asymptote/bezierpatch.h @@ -125,21 +125,11 @@ struct BezierPatch void append() { if(transparent) transparentData.Append(data); - else if(color) { - colorData.Append(data); - if(colorData.Vertices.size() >= gl::maxvertices) { - drawBuffer(colorData,colorShader); - colorData.clear(); - gl::forceRemesh=true; - } - } else { - materialData.append(data); - if(materialData.vertices.size() >= gl::maxvertices) { - drawBuffer(materialData,materialShader); - materialData.clear(); - gl::forceRemesh=true; - } + if(color) + colorData.Append(data); + else + materialData.append(data); } } @@ -193,14 +183,8 @@ public: void append() { if(transparent) transparentData.Append(data); - else { + else triangleData.Append(data); - if(triangleData.Vertices.size() >= gl::maxvertices) { - drawBuffer(triangleData,transparentShader); - triangleData.clear(); - gl::forceRemesh=true; - } - } } }; |