The cause of this error is an older version of NVIDIA glext.h , which still has this definition. While in the latest versions there is no GLEW . This leads to compilation errors in the code that you previously wrote or received from the Internet.
The definition of GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT for the FBO is used in the specification (and therefore in the header files). But he was later removed. The reason for this can be found in the FBO extension specification (see Release 87):
(87) What happens if a single image is attached more than once to a framebuffer object? RESOLVED: The value written to the pixel is undefined. There used to be a rule in section 4.4.4.2 that resulted in FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT if a single image was attached more than once to a framebuffer object. FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT 0x8CD8 * A single image is not attached more than once to the framebuffer object. { FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT } This rule was removed in version
To fix this error, remove all GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT from your code.
If this is not possible in the configuration, add a dummy definition to the glext.h or glew.h file , for example:
#define GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT 0x8CD8
source share