Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Commit 999c169

Browse files
committed
remove gl_exclude.h mechanism as irrelevant here
1 parent f143203 commit 999c169

File tree

4 files changed

+0
-77
lines changed

4 files changed

+0
-77
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ OpenGL-GLUT-*/
99
blib/
1010
pm_to_blib
1111
*~
12-
gl_exclude.h
1312
GLUT.c
1413
pogl_const.c
1514
pogl_gl_top.c

MANIFEST.SKIP

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ EL-ELI.c
4848
^GLUT.c
4949
^GLUT.o
5050
^gl-funs.txt
51-
^gl_exclude.h$
5251
^gl_util.o
5352
^gllist
5453
^pdl.h

Makefile.PL

-74
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,6 @@ my $build_config =
604604
{
605605
FILES =>
606606
"utils/glversion.txt ".
607-
"gl_exclude.h ".
608607
"utils/glversion$Config{exe_ext} ".
609608
"utils/glversion$Config{obj_ext}"
610609
}
@@ -802,8 +801,6 @@ sub get_extensions
802801
print "Testing for OpenGL Extensions\n" if ($verbose);
803802

804803
# clean up previous output files
805-
my $exc_file = 'gl_exclude.h';
806-
unlink($exc_file) if (-e $exc_file);
807804
my $glv_file = 'utils/glversion.txt';
808805
unlink($glv_file) if (-e $glv_file);
809806

@@ -884,34 +881,10 @@ sub get_extensions
884881

885882
print "This looks like OpenGL Version: $gldata->{VERSION}\n";
886883

887-
# Parse glext_procs.h file
888-
open GLEXT, "glext_procs.h" or die "get_extensions: could not open glext_procs.h: $!\n";
889-
my @lines = <GLEXT>;
890-
close(GLEXT);
891-
892-
my $no_ext = {};
893-
foreach my $line (@lines)
894-
{
895-
next if ($line !~ m|\#ifndef NO_([^\s]+)|);
896-
my $ext = $1;
897-
next if ($ext =~ m|^GL_VERSION_|);
898-
$no_ext->{$ext}++;
899-
}
900-
901-
902-
# Create gl_exclude.h
903-
die "Unable to write to $exc_file\n" if (!open(GLEXC,">$exc_file"));
904-
print GLEXC "// OpenGL Extension Exclusions - may be modified before building.\n";
905-
print GLEXC "//\n";
906-
print GLEXC "// Generated for ".$gldata->{VENDOR}.", ".$gldata->{RENDERER}."\n";
907-
print GLEXC "// OpenGL v".$gldata->{VERSION}.", using ";
908-
909884
# Fix GLUT flags based on results
910885
if ($gldata->{FREEGLUT})
911886
{
912887
print 'Found FreeGLUT v'.$gldata->{FREEGLUT}."\n";
913-
print GLEXC 'FreeGLUT v'.$gldata->{FREEGLUT}."\n";
914-
915888
if (!$found->{FREEGLUT} && !$found->{FREEGLUT32})
916889
{
917890
$found->{FREEGLUT} = $lib;
@@ -934,53 +907,6 @@ sub get_extensions
934907
($GL_VERSION_MAJOR,$GL_VERSION_MINOR) = split('.', $GL_VERSION);
935908
}
936909

937-
# Make an empty exclusion file if a Windows distribution build
938-
if ($no_excl)
939-
{
940-
print "OpenGL Extension exclusions disabled\n";
941-
print GLEXC "//\n";
942-
print GLEXC "// Exclusions omitted for distribution build.\n";
943-
}
944-
else
945-
{
946-
print GLEXC "\n";
947-
if ($GL_VERSION)
948-
{
949-
print GLEXC "#define NO_GL_VERSION_4_5\n" if ($GL_VERSION < 4.5);
950-
print GLEXC "#define NO_GL_VERSION_4_4\n" if ($GL_VERSION < 4.4);
951-
print GLEXC "#define NO_GL_VERSION_4_3\n" if ($GL_VERSION < 4.3);
952-
print GLEXC "#define NO_GL_VERSION_4_2\n" if ($GL_VERSION < 4.2);
953-
print GLEXC "#define NO_GL_VERSION_4_1\n" if ($GL_VERSION < 4.1);
954-
print GLEXC "#define NO_GL_VERSION_4_0\n" if ($GL_VERSION < 4.0);
955-
print GLEXC "#define NO_GL_VERSION_3_3\n" if ($GL_VERSION < 3.3);
956-
print GLEXC "#define NO_GL_VERSION_3_2\n" if ($GL_VERSION < 3.2);
957-
print GLEXC "#define NO_GL_VERSION_3_1\n" if ($GL_VERSION < 3.1);
958-
print GLEXC "#define NO_GL_VERSION_3_0\n" if ($GL_VERSION < 3.0);
959-
print GLEXC "#define NO_GL_VERSION_2_1\n" if ($GL_VERSION < 2.1);
960-
print GLEXC "#define NO_GL_VERSION_2_0\n" if ($GL_VERSION < 2.0);
961-
print GLEXC "#define NO_GL_VERSION_1_5\n" if ($GL_VERSION < 1.5);
962-
print GLEXC "#define NO_GL_VERSION_1_4\n" if ($GL_VERSION < 1.4);
963-
print GLEXC "#define NO_GL_VERSION_1_3\n" if ($GL_VERSION < 1.3);
964-
print GLEXC "#define NO_GL_VERSION_1_2\n" if ($GL_VERSION < 1.2);
965-
print GLEXC "#define NO_GL_VERSION_1_1\n" if ($GL_VERSION < 1.1);
966-
}
967-
968-
foreach my $ext (split(' ',$gldata->{EXTENSIONS}))
969-
{
970-
next if (!$no_ext->{$ext});
971-
$no_ext->{$ext} = 0;
972-
}
973-
974-
foreach my $ext (sort keys(%$no_ext))
975-
{
976-
next if (!$no_ext->{$ext});
977-
print GLEXC "#define NO_$ext\n";
978-
}
979-
}
980-
981-
close(GLEXC);
982-
983-
984910
# return Distributable Defs
985911
print "Have Version Data\n" if ($verbose);
986912
my $defines = '-DHAVE_VER';

gl_util.h

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
/* Use version-detection if available */
2626
#if defined(HAVE_VER)
2727
#include "glext_types.h"
28-
#include "gl_exclude.h"
2928
#include "glext_procs.h"
3029
#else
3130
#endif

0 commit comments

Comments
 (0)