Fix shader stringify

This commit is contained in:
Tim Angus 2020-09-08 10:46:18 +01:00
parent c0b15329e3
commit 2ec57b3a0e

View file

@ -1223,7 +1223,7 @@ define DO_REF_STR
$(echo_cmd) "REF_STR $<"
$(Q)rm -f $@
$(Q)echo "const char *fallbackShader_$(notdir $(basename $<)) =" >> $@
$(Q)cat $< | sed -e 's/^\(.*\)$$/\"\1\"/' >> $@
$(Q)cat $< | sed -e 's/^\(.*\)$$/\"\1\\n\"/' >> $@
$(Q)echo ";" >> $@
endef