Hi,
I just copied this code from "framebufferobject" example.
QMessageBox::information(0,
"OpenGL framebuffer objects",
"This system does not support OpenGL/framebuffer objects.");
return -1;
}
if (!QGLFormat::hasOpenGL() || !QGLFramebufferObject::hasOpenGLFramebufferObjects()) {
QMessageBox::information(0, "OpenGL framebuffer objects",
"This system does not support OpenGL/framebuffer objects.");
return -1;
}
To copy to clipboard, switch view to plain text mode
On a notebook it is returning me false on "hasOpenGLFramebufferObjects".
My openGL widget constructor is
QOpenGLWidget::QOpenGLWidget(QWidget *parent) : QGLWidget(QGLFormat(QGL::SampleBuffers),parent)
To copy to clipboard, switch view to plain text mode
I tryied to change it to
QOpenGLWidget::QOpenGLWidget(QWidget *parent) : QGLWidget(QGLFormat(QGL::DirectRendering),parent)
To copy to clipboard, switch view to plain text mode
The problem is that the images are not properly shown as you can see on the attached file.
Bookmarks