Skip to content

Commit

Permalink
Remove comments from stringified shaders.
Browse files Browse the repository at this point in the history
MSVC has a hard limit of 64k characters in a string literal.
  • Loading branch information
gimhael committed May 4, 2015
1 parent ed582ca commit 2024c0f
Show file tree
Hide file tree
Showing 2 changed files with 837 additions and 2,639 deletions.
2 changes: 1 addition & 1 deletion buildshaders.sh
Expand Up @@ -13,7 +13,7 @@ cd main
for f in glsl/*.glsl
do
echo '{ "'$f'", R"('
cat $f
perl -p0e 's%/(\*.*?\*/|/[^\n]*)%%sg' $f
echo ')" },'
done
echo '} );'
Expand Down

0 comments on commit 2024c0f

Please sign in to comment.