Commit fb14b0eb authored by Committed by Paul Berry
Make shader_runner add a #version directive to shaders lacking one.
The version number is taken from the GLSL version requirement, if there is one. This is part of the effort to make version handling more flexible for GLES. v2 (Paul Berry <email@example.com>): use strstr() to check whether a #version directive is already present, in case it isn't at the start of the shader. Reviewed-by: Paul Berry <firstname.lastname@example.org>
Showing with 34 additions and 7 deletions