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().

_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to