Multisampling and GL_STENCIL_INDEX

Hi,

when I attach a stencil renderbuffer to my multisampled
framebuffer OR singlesampled using GL_STENCIL_INDEX
I always get the incomplete attachments error.

When I use GL_STENCIL_INDEX8_EXT for the singlesampled
FBO everything works fine, but it also does not work
for the multisampled one.

I use the sample code from the OpenGL registry.

Any ideas? I know there is also a packed alternative
(depth+stencil together in one buffer). Is this the
first choice? But why is GL_STENCIL_INDEX not working
at all and GL_STENCIL_INDEX8_EXT only for singelsampled?

I’m using a NVidia 8800 GTS on Windows 7 with latest drivers.

Thanks for help!

Ok I tried GL_EXT_packed_depth_stencil now and
it works also with Multisampling, I don’t get
the incomplete attachment anymore :D.

Maybe the hardware can handle the packed format better.