Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
19 Views

glNamedFramebufferTextureLayer rejects cubemaps of any kind

System Used: N/A
CPU SKU: i5-8265U
GPU SKU: UHD 620
System BIOS Version: N/A
CMOS settings: N/A
Graphics Driver Version: 25.20.100.6444
GOP/VBIOS Version: 9.0.1080
Operating System: Win10 Home
OS Version: 10.0.19603
API: OpenGL 4.5
Occurs on non-Intel GPUs?: does not occur on NVIDIA GPUs, AMD not tested

Steps to Reproduce:
-------------------------------
1. Create an OpenGL 4.5 context.
2. Create a framebuffer and try to bind a cube map face to a color attachment

   

GLuint cubeTex;
glCreateTextures(GL_TEXTURE_CUBE_MAP, 1, &cubeTex);
glTextureStorage2D(cubeTex, 1, GL_RGBA16F, 1024, 1024);

GLuint fb;
glCreateFramebuffers(1, &fb);

glNamedFramebufferTextureLayer(fb, GL_COLOR_ATTACHMENT0, cubeTex, 0, 4);

 

Expected Results:
-------------------------------

According to the OpenGL 4.5 Spec, no error should be thrown and the operation should be successful

 

Actual Results:
-------------------------------

With a debug context, the following error is thrown and any drawing operation with the Framebuffer bound will not do anything.

Error has been generated. GL error GL_INVALID_OPERATION in NamedFramebufferTextureLayer: (ID: 3072786610) Generic error

The error is generated by the call to glNamedFramebufferTextureLayer.

 

Additional Information:
-------------------------------

On any NVIDIA card I have tested, no error or warning is generated

0 Kudos
0 Replies