Merge pull request #618 from lioncash/array-bounds OGL: Correctly guard against array bounds of s_encodingPrograms