fixed uniform check (removes some useless GL calls)