[Qt-interest] WEIRED PROBLEM: incomplete opengl framebuffer
Yifei Li
yifli at mtu.edu
Mon Aug 22 17:18:48 CEST 2011
oops, I missed one line in the code
----------------------------------------------------
Yifei Li
PhD Candidate in Computer Science
Michigan Tech. University
On Aug 22, 2011, at 11:15 AM, Yifei Li wrote:
> 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;
glWidget->makeCurrent();
> 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
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110822/330409a3/attachment.html
More information about the Qt-interest-old
mailing list