Re: [Development] QSurface handle is NULL

2013-12-06 Thread Csaba Csernai
It is similar to that one, although a resize call won't solve it in my case. But the situation is same as what David Eller wrote in his comment. After a makeCurrent() call, QGLContext::currentContext() and QGLWidget::context() won't be the same. I forgot to mention that i use Win7, with msvc 11.0.

Re: [Development] QSurface handle is NULL

2013-12-05 Thread Sean Harmer
On 05/12/2013 14:56, Csaba Csernai wrote: > Hi everyone! > > I am working on a project, which uses openGL, but there is some glitch > when i create a new instance of QGLWidget. It seems that somehow the > QSurface::surfaceHandle() returns NULL, thus can't make the context > active. > Can anyone

[Development] QSurface handle is NULL

2013-12-05 Thread Csaba Csernai
Hi everyone! I am working on a project, which uses openGL, but there is some glitch when i create a new instance of QGLWidget. It seems that somehow the QSurface::surfaceHandle() returns NULL, thus can't make the context active. Can anyone suggest when can this handle NULL? Best Regards, -- Csab