glBufferData 由于尺寸过大而默默失败
我刚刚注意到,当我尝试使用 size: 1085859108 和 data: NULL 调用 glBufferData 时,它会默默地失败。
以下对 glBufferSubData 的调用失败并出现 OUT_OF_MEMORY“异常”。适用于 Windows XP 32 位、NVIDIA Gforce 9500 GT (1024MB) 和 195.62 驱动程序。
有什么方法可以确定缓冲区是否已成功创建? (例如像代理纹理之类的东西?)
亲切的问候, 弗洛里安
i just noticed, that glBufferData fails silently when i try to call it with size: 1085859108 and data: NULL.
Following calls to glBufferSubData fail with a OUT_OF_MEMORY 'Exception'. This is on Windows XP 32bit, NVIDIA Gforce 9500 GT (1024MB) and 195.62 Drivers.
Is there any way to determinate if a buffer was created sucessfully? (Something like a proxy texture for example?)
kind regards,
Florian
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我怀疑它真的很安静。我猜想在该尝试之后
glGetError
会返回GL_OUT_OF_MEMORY
。I doubt that it's really silent. I'd guess that
glGetError
would returnGL_OUT_OF_MEMORY
after that attempt.