charts.lines: reduce the amount of data copying in draw-lines

char-rename
Alexander Iljin 2017-01-17 22:16:29 +03:00 committed by John Benediktsson
parent 5c0fa9c94e
commit 8a87a8077e
1 changed files with 2 additions and 2 deletions

View File

@ -172,8 +172,8 @@ ALIAS: y second
PRIVATE>
: draw-line ( seq -- )
dup dup length odd? [ [ 1 head* ] dip ] [ 1 head* ] if
1 tail append
dup [ 1 head-slice* ] over length odd? [ dip ] [ call ] if
1 tail-slice append
[ (line-vertices) gl-vertex-pointer GL_LINES 0 ] keep
length glDrawArrays ;