![]() I tested in on integrated Intelu GPU and Nvidia 1080 Ti GPU so this in probably not a driver bug. GLenum framebufferStatus = glCheckFramebufferStatus(GL_FRAMEBUFFER) // GL_FRAMEBUFFER_INCOMPLETE_ATTACHMEN(0x8CD6) If (glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE) GLenum framebufferStatus = glCheckFramebufferStatus(GL_FRAMEBUFFER) GlFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D, depthTexture, 0) ![]() GlTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE) GlTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE) GlTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST) GlTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST) GlTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT, 1024, 1024, 0, GL_DEPTH_COMPONENT, GL_FLOAT, 0) Įrror = glGetError() // GL_INVALID_OPERATION (0x0502) error I tried also various combination of GL_DEPTH_COMPONENT16 formats and internal formats GlBindTexture(GL_TEXTURE_2D, depthTexture) GlBindFramebuffer(GL_FRAMEBUFFER, framebuffer) I also checked call to glTexImage2D() function with glGetError() and it returns GL_INVALID_OPERATION (0x0502). The problem I encounter is that FBO is not valid due to GL_FRAMEBUFFER_INCOMPLETE_ATTACHMEN (0x8CD6) error checked with glCheckFramebufferStatus() function. I am trying to add simple shadow mapping to my friends gles 2.0 app.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |