Re: [Development] Problem with QOpenGLContext?

2014-03-11 Thread Sorvig Morten
Will this patch work? https://codereview.qt-project.org/#change,80620 Morten On 11 Mar 2014, at 12:12, Kurt Pattyn wrote: > Some more information. > > I work on OSX. > When digging into the platform specific implementation, I detected that in > the method qcgl_createNSOpenGLPixelFormat() >

Re: [Development] Problem with QOpenGLContext?

2014-03-11 Thread Kurt Pattyn
Hi Morten, I reviewed the patch (no, it won’t work). Accidentally I already submitted a (working) patch: https://codereview.qt-project.org/#change,80610 Cheers, Kurt On 11 Mar 2014, at 15:00, Sorvig Morten wrote: > Will this patch work? > > https://codereview.qt-project.org/#change,80620 >

Re: [Development] Problem with QOpenGLContext?

2014-03-11 Thread Kurt Pattyn
Some more information. I work on OSX. When digging into the platform specific implementation, I detected that in the method qcgl_createNSOpenGLPixelFormat() the color depth nor the alpha depth is not set. If it is not set, it defaults to the screen color depth, which is 8-bit in my case. I will

[Development] Problem with QOpenGLContext?

2014-03-11 Thread Kurt Pattyn
Hi, as I understand correctly the ‘old’ QGLxxx classes will be replaced by new QOpenGLxxx classes. I tried the following code below, and found out that QGLContext is correctly setting the color depth, while QOpenGLContext always defaults to 8. QSurfaceFormat ogfrmt; ogfrmt.setRedBufferS