Skip to content

Commit 06ac08e

Browse files
committed
::Image actually "is a" GObject
1 parent 9fbc910 commit 06ac08e

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

lib/PDL/Graphics/TriD/GL.pm

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -424,11 +424,7 @@ sub PDL::Graphics::TriD::Image::togl {
424424
glMatrixMode(GL_PROJECTION);
425425
glLoadIdentity();
426426
glOrtho(0,1,0,1,-1,1);
427-
&PDL::Graphics::TriD::Image::togl_graph;
428-
}
429-
430-
sub PDL::Graphics::TriD::Image::togl_graph {
431-
$_[0]->gdraw();
427+
goto &PDL::Graphics::TriD::GObject::togl;
432428
}
433429

434430
# The quick method is to use texturing for the good effect.

lib/PDL/Graphics/TriD/Image.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
package PDL::Graphics::TriD::Image;
1010
use strict;
1111
use warnings;
12-
our @ISA=qw/PDL::Graphics::TriD::Object/;
12+
our @ISA=qw/PDL::Graphics::TriD::GObject/;
1313
use PDL::Lite;
1414

1515
my $defaultvert = PDL->pdl([

0 commit comments

Comments
 (0)