[Qt-interest] WEIRED PROBLEM: incomplete opengl framebuffer

Yifei Li yifli at mtu.edu
Tue Aug 23 16:38:17 CEST 2011


 Qt-4.6.2 may have some incompatibilities with Lion.

The same program even runs fine under a Windows 7 virtual machine on Lion

On Aug 22, 2011, at 1:48 PM, Yifei Li wrote:

> FYI, I found glCheckFrameStatus actually returns GL_FRAMEBUFFER_UNDEFINED.
> 
> On Aug 22, 2011, at 11:18 AM, Yifei Li wrote:
> 
>> oops, I missed one line in the code
>> 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
>> 
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at qt.nokia.com
>> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
> 
> _______________________________________________
> 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/20110823/5e72d404/attachment.html 


More information about the Qt-interest-old mailing list