[Qt-interest] WEIRED PROBLEM: incomplete opengl framebuffer

Yifei Li yifli at mtu.edu
Mon Aug 22 17:15:04 CEST 2011


Hi,

First of all, I recently upgraded to Mac OS X Lion on my 15'' Macbook Pro and I'm using Qt-4.6.2 (built from source). I've never had this problem before with Snow Leopard.

glCheckFramebufferStatus returns some unknown error after I create a QGLWidget. Please try the following code in your QMainWindow's constructor to see if you have the same problem:

QGLWidget* glWidget = new QGLWidget;
GLuint status = glCheckFrameBufferStatus(GL_FRAMEBUFFER);
if( status != GL_FRAMEBUFFER_COMPLETE) {
          switch(status){
        case GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT:
            qDebug("incomplete attachment");
            break;
        case GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:
            qDebug("incomplete missing attachment");
            break;
        case GL_FRAMEBUFFER_UNSUPPORTED:
            qDebug("unsupported");
            break;
        default:
            qDebug("something else");

}

Thanks

Yifei


More information about the Qt-interest-old mailing list