我在使用 固定运营基地s在我的照片码和我看到了一些编辑上的错误 GL\_FRAMEBUFFER\_INCOMPLETE\_DUPLICATE\_ATTACHMENT\_EXT.是什么导致这和我怎么修它?

有帮助吗?

解决方案

此错误的原因是旧版本的选的 glext.h, 仍然有这个定义。而最近的版本 GLEW 不。这导致编辑中的错误代码,你写了以前,或者从网络上。

GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT 定义为固定运营基地用于存在的规范(和因此,在标题文件)。但是,它后来被删除。为此原因,可以发现在 固定运营基地扩展的规范 (寻找问题的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 #117 of the
     EXT_framebuffer_object specification after discussion at the
     September 2005 ARB meeting.  The rule essentially required an
     O(n*lg(n)) search.  Some implementations would not need to do that
     search if the completeness rules did not require it.  Instead,
     language was added to section 4.10 which says the values
     written to the framebuffer are undefined when this rule is
     violated.

要解决这个错误,删除所有使用情况 GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT 从你的代码。

如果这是不可能的安装,然后添加一个虚拟的定义,以你的 glext.hglew.h 文件这样的:

#define GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT 0x8CD8
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top