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

时间:2017-11-01 08:05:49

标签: c++ qt opengl

因此,有两台装有Windows 8.1 x64的电脑。首先安装了Qt 5.7 SDK,第二个没有。 在第一台PC上,以下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上修复上面列出的错误?

1 个答案:

答案 0 :(得分:0)

问题在于:我一直在使用Microsoft Windows RDP。通过它无法正常启动Qt OpenGL应用程序。似乎微软或Digia搞砸了!