diff src/scripts/graphics.lua @ 858:881c2bc7670f

Fix issue #314: Can't use #define in shader code.
author vrld <vrld@vrld.org>
date Wed, 12 Oct 2011 12:37:09 +0200
parents ba1892694a3c
children c5e90f2bc749
line wrap: on
line diff
--- a/src/scripts/graphics.lua	Wed Oct 12 00:06:15 2011 -0500
+++ b/src/scripts/graphics.lua	Wed Oct 12 12:37:09 2011 +0200
@@ -1294,7 +1294,7 @@
 		code = code:gsub("#include (%b'')", include)
 		code = code:gsub('#include (%b"")', include)
 
-		return table.concat{header, code, footer}
+		return table.concat{header, "\n", code, footer}
 	end
 
 	function love.graphics._transformGLSLErrorMessages(message)