From: Kartik Thakore Date: Tue, 18 Aug 2009 10:55:56 +0000 (-0400) Subject: Applied same fix to OpenGL constants X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ce59d11fac213018d768eda5033098ec219b700f;p=sdlgit%2FSDL_perl.git Applied same fix to OpenGL constants --- diff --git a/lib/SDL/OpenGL.pm b/lib/SDL/OpenGL.pm index 9a849f2..cf8ef33 100644 --- a/lib/SDL/OpenGL.pm +++ b/lib/SDL/OpenGL.pm @@ -44,7 +44,6 @@ use vars qw( use SDL; - bootstrap SDL::OpenGL; for ( keys %SDL::OpenGL:: ) { if (/^gl/) { @@ -54,6 +53,15 @@ for ( keys %SDL::OpenGL:: ) { use SDL::OpenGL::Constants; +sub import { + my $self = shift; + + $self->export_to_level(1, @_); + SDL::OpenGL::Constants->export_to_level(1); + } + + + 1; __END__; diff --git a/lib/SDL/OpenGL/Constants.pm b/lib/SDL/OpenGL/Constants.pm index 5a4223e..c13c6c8 100644 --- a/lib/SDL/OpenGL/Constants.pm +++ b/lib/SDL/OpenGL/Constants.pm @@ -1598,10 +1598,7 @@ package SDL::OpenGL::Constants; GL_ZOOM_Y ); -for (@EXPORT) { - *{"SDL::" . $_} = *{$_}; - *{"main::" . $_} = *{$_}; -} +@ISA = qw(Exporter); sub GLU_AUTO_LOAD_MATRIX {100200} sub GLU_CULLING {100201}