Skip to content

Commit 04ce960

Browse files
committed
use override, not manually go through sub-Objects
1 parent d06e1dc commit 04ce960

File tree

1 file changed

+2
-3
lines changed
  • lib/PDL/Graphics/TriD

1 file changed

+2
-3
lines changed

lib/PDL/Graphics/TriD/GL.pm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ sub PDL::Graphics::TriD::Object::gl_update_list {
2525
print "GENLIST $this $lno\n" if $PDL::Graphics::TriD::verbose;
2626
glNewList($lno,GL_COMPILE);
2727
eval {
28-
my @objs = @{$this->{Objects}};
29-
$_->togl() for @objs;
28+
$this->togl;
3029
print "EGENLIST $lno\n" if $PDL::Graphics::TriD::verbose;
3130
};
3231
{ local $@; glEndList(); }
@@ -330,7 +329,7 @@ sub PDL::Graphics::TriD::Image::gdraw {
330329
if(!defined $vert) {$vert = $this->{Points}}
331330
barf "Need 3,4 vert"
332331
if grep $_->dim(1) < 4 || $_->dim(0) != 3, $vert;
333-
if ($_[0]{Options}{FullScreen}) {
332+
if ($this->{Options}{FullScreen}) {
334333
glMatrixMode(GL_MODELVIEW);
335334
glLoadIdentity();
336335
glMatrixMode(GL_PROJECTION);

0 commit comments

Comments
 (0)