iPhone 上的 OpenGL ES 1.1 纹理故障排除
我试图将纹理绘制到屏幕外的帧缓冲区中,并且其渲染缓冲区始终最终完全空白(黑色)。奇怪的是,我知道上下文已设置,并且我正在使用 glCheckFramebufferStatusOES(GL_FRAMEBUFFER_OES) 和 glGetError() 检查错误,但两个函数都没有说有任何问题。我可以调用任何其他错误检查函数来了解正在发生的情况吗?
I'm trying to draw a texture into an offscreen framebuffer, and its renderbuffer always ends up completely blank (black). The weird thing is, I know the context is set up, and I'm checking for errors using glCheckFramebufferStatusOES(GL_FRAMEBUFFER_OES) and glGetError(), but neither function says anything is wrong. Are there any other error-checking functions I can call which might shed some light on what's happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果没有更多信息,很难给你准确的答案。也许您可以发布一些有关渲染缓冲区的设置和使用的代码?
同时,这里有一些有关如何正确设置屏幕外帧缓冲区的信息:
希望这会有所帮助......
Difficult to give you a precise answer without more information. Perhaps could you post some code about your setup and usage of the render buffer?
In the meantime, here is some info about how to properly setup an offscreen framebuffer:
Hope this helps...