3 Replies Latest reply on Dec 12, 2013 4:47 PM by potski

    OpenGL Driver Bug: glGenerateTextureMipmapEXT fails to create mip maps


      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: https://gist.github.com/anonymous/7837036


      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: http://pastebin.com/mh73NzyA