summaryrefslogtreecommitdiff
path: root/graphics/asymptote/drawsurface.cc
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/drawsurface.cc')
-rw-r--r--graphics/asymptote/drawsurface.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/asymptote/drawsurface.cc b/graphics/asymptote/drawsurface.cc
index 104b545668..ef330a07b7 100644
--- a/graphics/asymptote/drawsurface.cc
+++ b/graphics/asymptote/drawsurface.cc
@@ -497,9 +497,9 @@ bool drawBezierTriangle::write(abs3Doutfile *out)
} else {
double prerender=renderResolution();
if(prerender) {
- GLfloat c[16];
+ GLfloat c[12];
if(colors)
- for(size_t i=0; i < 4; ++i)
+ for(size_t i=0; i < 3; ++i)
storecolor(c,4*i,colors[i]);
S.init(prerender,colors ? c : NULL);
S.render(controls,straight,c);