Skip to content

Commit

Permalink
Applied same fix to OpenGL constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Thakore committed Aug 18, 2009
1 parent 600a822 commit ce59d11
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 9 additions & 1 deletion lib/SDL/OpenGL.pm
Expand Up @@ -44,7 +44,6 @@ use vars qw(

use SDL;


bootstrap SDL::OpenGL;
for ( keys %SDL::OpenGL:: ) {
if (/^gl/) {
Expand All @@ -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__;
Expand Down
5 changes: 1 addition & 4 deletions lib/SDL/OpenGL/Constants.pm
Expand Up @@ -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}
Expand Down

0 comments on commit ce59d11

Please sign in to comment.