According to ARB_geometry_shader4 it is possible to render a scene onto the 6 faces of a cube map with a geometry shader and the cube map attached to a framebuffer object. I want to create a shadow map using this way. However there seems to be a conflict that I can't resolve:

  1. I can only attach a texture with GL_DEPTH_COMPONENT as internal type to the GL_DEPTH_ATTACHMENT_EXT.
  2. A depth texture can only be 1D or 2D.
  3. If I want to attach a cube map, all other attached textures must be cube maps as well.

So it looks like I can't use any depth testing when I want to render to a cube map. Or what exactly am I missing here?

EDIT: It looks like newer Nvidia drivers (180.48) support depth cube maps.

Edit
Report