fixed problem with ARB_shader_objects and ARB_vertex_shader

git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@246 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
ikits 2004-03-19 00:53:01 +00:00
parent d1661a99e0
commit 527190f4be
3 changed files with 3 additions and 2 deletions

View File

@ -122,6 +122,7 @@ $(S.DEST)/glew.c: $(EXT)/.dummy
cat $(SRC)/glew_post.c >> $@
$(BIN)/fix_OML_sync_control.sh $@
perl -e "s/GLEW_VERSION_STRING/$(GLEW_MAJOR)\.$(GLEW_MINOR)\.$(GLEW_MICRO)/g" -pi $@
perl -e "s/_glewInit_GL_ARB_vertex_shader\(GLEW_CONTEXT_ARG_VAR_INIT\);/_glewInit_GL_ARB_vertex_shader(GLEW_CONTEXT_ARG_VAR_INIT); _glewInit_GL_ARB_vertex_program(GLEW_CONTEXT_ARG_VAR_INIT);/g" -pi $@
rm -f $@.bak
$(S.DEST)/glewinfo.c: $(EXT)/.dummy

View File

@ -47,7 +47,7 @@ foreach my $ext (sort @extlist)
#my $pextvar = prefix_varname($extvar);
print "#ifdef $extname\n";
print " " . $extvar . "= " . $extpre . "GetExtension(\"$extname\");\n";
print " " . $extvar . " = " . $extpre . "GetExtension(\"$extname\");\n";
if (keys %$functions)
{
if ($extname =~ /WGL_.*/)

View File

@ -139,7 +139,7 @@ EOT
# fix bugs in GL_ARB_shader_objects
grep -v "GL_FLOAT " $1/GL_ARB_shader_objects > tmp
mv tmp $1/GL_ARB_shader_objects
grep -v "GL_INT" $1/GL_ARB_shader_objects > tmp
grep -v "GL_INT " $1/GL_ARB_shader_objects > tmp
mv tmp $1/GL_ARB_shader_objects
# add typedefs to GL_ARB_shader_objects