Jump to content
  • Advertisement
Sign in to follow this  

OpenGL Issues with new DSA functions in OpenGL 4.5

This topic is 1386 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Here is the code which seems to be problematic:

GLuint texture = 0;

glCreateTextures(GL_TEXTURE_2D, 1, &texture);
glTextureStorage2D(texture, 10, GL_RGBA8, 512, 512);
glTextureSubImage2D(texture, 0, 0, 0, 512, 512, GL_RGBA, GL_UNSIGNED_BYTE, image_buffer);
glBindTextureUnit(GL_TEXTURE0, texture);

Here is the output I am getting:

OpenGL debug: GL_INVALID_VALUE error generated. <unit> must be less than the number of combined texture image units.
OpenGL debug: Texture state usage warning: Texture 0 is base level inconsistent. Check texture size.
Edited by Chris_F

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!