AnsweredAssumed Answered

OpenGL Driver Bug: glGenerateTextureMipmapEXT fails to create mip maps

Question asked by chris_f on Dec 6, 2013
Latest reply on Dec 12, 2013 by potski

This bug was discovered using the latest version of Catalyst drivers for Windows. OpenGL version string: 4.3.12614 Core Profile Forward-Compatible/Debug Context Here is a link to some code to reproduce the error:


The code snippet which is producing the bug:


GLuint texture = 0;
glGenTextures(1, &texture);
glTextureStorage2DEXT(texture, GL_TEXTURE_2D, 10, GL_RGBA8, 512, 512);
glTextureSubImage2DEXT(texture, GL_TEXTURE_2D, 0, 0, 0, 512, 512, GL_RGBA, GL_UNSIGNED_BYTE, image_buffer);
glGenerateTextureMipmapEXT(texture, GL_TEXTURE_2D);


No errors are captured by glGetError or ARB_debug_output/KHR_debug. Despite this, all mip levels above zero remain blank.


All of the following code snippets while similar do not reproduce this bug: