[Interest] Allow external library to generate OpenGL buffers in context of QOpenGLWidget

Pieter Barendrecht pjbarendrecht at gmail.com
Thu Jul 4 11:17:18 CEST 2019


Hi all,

I have a Qt application with a QOpenGLWidget for displaying 3D meshes. Now
I'd like to use an external library (OpenSubdiv in this case, see e.g.
http://graphics.pixar.com/opensubdiv/docs/api_overview.html) to generate
additional OpenGL buffers, which I can then bind and use in the context of
my QOpenGLWidget. Currently the application segfaults when OpenSubdiv tries
to generate these buffers — it does not seem to have a valid OpenGL
context. I've read some documentation on e.g. Qt::AA_ShareOpenGLContexts,
but can't find anything related to sharing a context with something not
directly Qt-related. Any thoughts?

Best,
Pieter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190704/4b87e6ce/attachment.html>


More information about the Interest mailing list