Prepared code for rendering to cube map.

Removed warning in GLUS.