2009/4/24 Stefan Dösinger stefandoesinger@gmx.at:
Am Freitag, 24. April 2009 09:21:23 schrieb Henri Verbeet:
Did you test this? What if the shader starts with a comment?
It doesn't make sense to try and parse a shader before knowing what version it is. Besides, this is consistent with shader_trace_init() and shader_get_registers_used().