Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save BoyBaykiller/3ed25ccc8ab3aac6236875f6a3fcae03 to your computer and use it in GitHub Desktop.

Select an option

Save BoyBaykiller/3ed25ccc8ab3aac6236875f6a3fcae03 to your computer and use it in GitHub Desktop.
OpenGL Bug: GL_EXT_shader_image_load_formatted extension not reported even though its implemented

I can require and use GL_EXT_shader_image_load_formatted in OpenGL-GLSL shaders without any problems:

#extension GL_EXT_shader_image_load_formatted : require
layout(binding = 0) restrict uniform image2D ImgResult;

However on the client side the extension is not reported when asking for it like this:

GLint numExt;
glGetIntegerv(GL_NUM_EXTENSIONS, &numExt);
for (int i = 0; i < numExt; i++) {
    char* extension = (char*)glGetStringi(GL_EXTENSIONS, i);
    if (!strcmp("GL_EXT_shader_image_load_formatted", extension)) {
        printf("Never found!\n");
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment