cancel
Showing results for 
Search instead for 
Did you mean: 

OpenGL & Vulkan

BoyBaykiller
Adept II

OpenGL Bug DSA Cubemaps dont work

Normally when I create and upload cubemap textures I do

glCreateTextures(GL_TEXTURE_CUBE_MAP, 1, &texture);
glTextureStorage2D(texture, 1, GL_SRGB8, size, size);
for (int i = 0; i < 6; i++)
{
    glTextureSubImage3D(texture, 0, 0, 0, i, size, size, 1, GL_RGB, GL_UNSIGNED_BYTE, pixels);
}

This no longer works since driver 22.7.1. `GL_INVALID_VALUE` is genereated when calling glTextureSubImage3D.

Using old style mutable non dsa textures still works.

glGenTextures(1, &texture);
glBindTexture(GL_TEXTURE_CUBE_MAP, texture);
for (int i = 0; i < 6; i++)
{
    glTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X + i, 0, GL_SRGB8, size, size, 0, GL_RGB, GL_UNSIGNED_BYTE, pixels);
}
0 Likes
1 Solution

Hi @BoyBaykiller 

From the related bug ticket, it looks like the issue has been fixed. Could you please try the latest public driver and confirm if it resolves the issue? 

Thanks.

View solution in original post

0 Likes
7 Replies
dipak
Big Boss

Thank you for reporting it. Please provide the gpu information.

0 Likes

I have a RX 5700 XT. I've seen someone with a RX 580 who has the same issue.

0 Likes

Thanks for the information. I have reported the issue to the OpenGL team.

0 Likes

As I have been informed, a bug ticket has been created to track the issue. I will notify you if I get any update on this.

Thanks.

0 Likes

Hi @BoyBaykiller 

From the related bug ticket, it looks like the issue has been fixed. Could you please try the latest public driver and confirm if it resolves the issue? 

Thanks.

0 Likes

Hello @dipak. Yes I can confirm this has been fixed!

0 Likes

Thanks for the confirmation.

0 Likes