Qt OpenGL帧缓冲在一台PC上创建,但在另一台PC上失败

Qt OpenGL framebuffer creates at one PC, but fails at another

本文关键字:一台 PC 失败 OpenGL Qt 缓冲 创建      更新时间:2023-10-16

所以,有两台装有Windows 8.1 x64的PC。第一个安装了Qt 5.7 SDK,第二个没有。首先,以下C++Qt5代码可以正常工作:

int big_width = 1392;
int big_height = 1040;
int small_width = 696;
int small_height = 520;
format.setSamples(4);
format.setAttachment(QGLFramebufferObject::Depth);
framebuffer_big = new QGLFramebufferObject(big_width, big_height, format);
framebuffer_small = new QGLFramebufferObject(small_width, small_height, format);

在第二台PC上,我在Windows控制台中观看以下内容:

[qglframebufferobject.cpp line 549] GL Error: 1280
QGLFramebufferObject: Framebuffer incomplete attachment.
QGLFramebufferObject: Framebuffer incomplete attachment.
QGLFramebufferObject: Framebuffer incomplete attachment.
[qglframebufferobject.cpp line 549] GL Error: 1280
QGLFramebufferObject: Framebuffer incomplete attachment.
QGLFramebufferObject: Framebuffer incomplete attachment.
QGLFramebufferObject: Framebuffer incomplete attachment.

因此,我在第二台PC上升级了视频驱动程序,但它没有效果。当然,还提供了一些必需的dll。


问题是:如何在第二台PC上修复上面列出的错误?

问题如下:我一直在使用Microsoft Windows RDP。通过它不可能正常启动Qt OpenGL应用程序。看来Microsoft或迪吉亚搞砸了!

相关文章: