mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-11 09:33:49 +00:00
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:
parent
d1661a99e0
commit
527190f4be
@ -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
|
||||
|
@ -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_.*/)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user