[Interest] QGLContext::makeCurrent(): Failed. Why?
Paul Miller
paul at fxtech.com
Sun Jan 20 17:04:07 CET 2013
On 1/20/2013 9:19 AM, Guido Seifert wrote:
> Hi, I have a strange warning, which I don't understand.
>
> QImage image = buffer->toImage();
>
> #if 0
> buffer->deleteTexture(mEndImageTexture);
> buffer->deleteTexture(mStartImageTexture);
> #endif
> return image;
> }
>
> I have no idea why and don't even know what QGLContext is meant. Can someone enlighten me?
It sounds as if buffer->toImage() must be changing the current context.
So I checked the code and indeed, though not documented, it sets the
current context to the QGLPixelBuffer.
You should clean up your textures BEFORE calling toImage().
More information about the Interest
mailing list