fixed some problems with glsl version

Change-Id: Id1cf9382680ae225c205535dbafd06abce269eaf