@@ -29,13 +29,8 @@ sub PDL::Graphics::TriD::Material::togl{
2929 glMaterialfv(GL_FRONT_AND_BACK,GL_DIFFUSE,$diff );
3030}
3131
32- $PDL::Graphics::TriD::any_cannots = 0;
3332$PDL::Graphics::TriD::verbose //= 0;
3433
35- sub PDL ::Graphics::TriD::Object::cannot_mklist {
36- return 0;
37- }
38-
3934sub PDL ::Graphics::TriD::Object::gl_update_list {
4035 my ($this ) = @_ ;
4136 glDeleteLists($this -> {List },1) if $this -> {List };
@@ -44,7 +39,6 @@ sub PDL::Graphics::TriD::Object::gl_update_list {
4439 glNewList($lno ,GL_COMPILE);
4540 eval {
4641 my @objs = @{$this -> {Objects }};
47- @objs = grep !$_ -> cannot_mklist(), @objs if $PDL::Graphics::TriD::any_cannots ;
4842 $_ -> togl() for @objs ;
4943 print " EGENLIST $lno \n " if ($PDL::Graphics::TriD::verbose );
5044 };
@@ -60,11 +54,6 @@ sub PDL::Graphics::TriD::Object::gl_call_list {
6054 print " CHECKVALID $this =$this ->{ValidList}\n " if $PDL::Graphics::TriD::verbose ;
6155 $this -> gl_update_list if !$this -> {ValidList };
6256 glCallList($this -> {List });
63- return if !$PDL::Graphics::TriD::any_cannots ;
64- for (grep $_ -> cannot_mklist, @{$this -> {Objects }}) {
65- print ref ($_ )," cannot mklist\n " ;
66- $_ -> togl();
67- }
6857}
6958
7059sub PDL ::Graphics::TriD::Object::delete_displist {
0 commit comments