#5979: Cubemap support for opengl2.