Updated to align with old Amlogic r3p1 API 17 opengl sources