GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT when trying to attach texture

前端 未结 1 505
囚心锁ツ
囚心锁ツ 2021-02-07 04:09

I get an error GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT after I try to create a framebuffer that renders to a texture. I can\'t figure out what is wrong, any help is gr

相关标签:
1条回答
  • 2021-02-07 04:53

    It is likely that the texture is incomplete. The default MIN_FILTER for a texture specifies mipmapping, but you've provided only for Texture Level 0, so the texture itself is incomplete.

    Add calls to glTexParamter to set the MIN_FILTER to one of the non-mipmapped modes.

    0 讨论(0)
提交回复
热议问题