Why program crash when destroy QOffscreenSurface subclass?
I want to render textures offscreen by using QOffscreenSurface and QOpenglContext class.Here are my codes:
OffscreenRender.h
Why share contexts are different between QOpenglWidget and custom QOffscreenSurface after set Qt::AA_ShareOpenGLContexts
I have a QOpenglWidget and a customized QOffscreenSurface,then I set Qt::AA_ShareOpenGLContexts attribute to QCoreApplication,here is my code: