Improved correctness of Program::GetActiveSamplerUniforms().
Problems:
- The current implementation picks up samplers that are declared as other
than uniforms (e.g. function arguments etc.), then, failing to find a
location associated with the same name, issues warnings about them.
- Tabs are ignored when tokenizing the shader source;
Solution: find declarations starting with "uniform" and ending with
a semicolon, then tokenize on whitespace (only), looking for the name
following a sampler* type declaration.
This also eliminates the need to tokenize the whole shader source.
- Also made some global const c-strings const pointers too;
Change-Id: Ibaa026d2e7873c28142300c149e6295f3cdbf7c5
Signed-off-by: György Straub <g.straub@partner.samsung.com>