fix scanning programs for uniform names

This commit is contained in:
Josh Holtrop 2014-08-05 20:05:30 -04:00
parent d3e2046b69
commit d4a2222447

View File

@ -20,7 +20,7 @@ module GL
f_shader or raise "Could not find shader #{f_src_fname}"
uniforms = (v_src + f_src).lines.map do |line|
if line =~ /\buniform\s.*\s(\S+);/
if line =~ /^\s*uniform\s.*\s(\S+);/
$1
end
end.compact