I seem to be having a problem viewing cubemaps with NSight 3.2. They’re rendered from the current scene to be used as reflection maps, which works just fine. They show up exactly as I’d expect them to in the scene. The cubemap that NSight displays for me in the frame debugger however simply has the same one face mirrored across all six.
I create all the textures for the cube map with:
for (int i = 0; i < 6; ++i)
{
glTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X + i, 0, GL_RGB, 128, 128, 0, GL_RGB, GL_UNSIGNED_BYTE, 0);
}
and attach the proper texture to the FBO before rendering.
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_CUBE_MAP_POSITIVE_X + face, cubemap, 0);
As I’ve said, it works just fine. It just doesn’t work for me when I try to view the texture in NSight. The texture it displays is instead a previously used, entirely unrelated texture, mirrored across all six faces.
I’m new to NSight, so I’m probably missing something obvious. Any help is appreciated.