projects
/
sdlgit/SDL_perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
600a822
)
Applied same fix to OpenGL constants
Kartik Thakore [Tue, 18 Aug 2009 10:55:56 +0000 (06:55 -0400)]
lib/SDL/OpenGL.pm
patch
|
blob
|
blame
|
history
lib/SDL/OpenGL/Constants.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SDL/OpenGL.pm
b/lib/SDL/OpenGL.pm
index
9a849f2
..
cf8ef33
100644
(file)
--- 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
(file)
--- 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}