Skip to content

Commit dfa080b

Browse files
committed
force tri index to be 3
1 parent 2105a0b commit dfa080b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/PDL/Graphics/OpenGLQ.pd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ sub RPOS { make_tri("glRasterPos3f",'$coords',@_) }
7777

7878
sub make_func {
7979
my ($name) = @_;
80-
for (['_col', ' colors(tri,n);', COLOR().VERTEX()], ['_nc', '', VERTEX()]) {
80+
for (['_col', ' colors(tri=3,n);', COLOR().VERTEX()], ['_nc', '', VERTEX()]) {
8181
pp_def(lc($name).$_->[0],
8282
GenericTypes => $F,
8383
Pars => 'coords(tri=3,n);'.$_->[1],
@@ -96,7 +96,7 @@ make_func($_) for qw(gl_line_strip gl_lines gl_points);
9696
pp_def(
9797
'gl_texts',
9898
GenericTypes => $F,
99-
Pars => 'coords(tri,x); ',
99+
Pars => 'coords(tri=3,x); ',
100100
OtherPars => 'SV *arr',
101101
CHeader => "void pdl_3d_bitmapString( const unsigned char *string );\n",
102102
Code => '

0 commit comments

Comments
 (0)