You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on BGFX interoperability with Qt. Especially QOpenGLWidget.
In our project, we need to handle several windows/widgets.
So, we let (as we don't have choice) Qt provide OpenGL contexts.
First BGFX is initialized by providing a Qt Context (through init() function)
In the widget code, framebuffers are created in initializeGL() & resizeGL() Qt methods to ensure the correct context is set up.
With this setup, we can properly render our scene from several windows / widgets, but since we have to change contexts for every window, we need to disable VAOs and query timers in BGFX to avoid crashes or errors (as container and query objects cannot be shared between contexts) https://www.khronos.org/opengl/wiki/OpenGL_Object#Object_Sharing
So my question is how to use or modify BGFX properly to allow full function usage ?
I see that BGFX doesn't allow to change context after init, so it seems difficult to associate container object to a context.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm working on BGFX interoperability with Qt. Especially QOpenGLWidget.
In our project, we need to handle several windows/widgets.
So, we let (as we don't have choice) Qt provide OpenGL contexts.
First BGFX is initialized by providing a Qt Context (through init() function)
In the widget code, framebuffers are created in initializeGL() & resizeGL() Qt methods to ensure the correct context is set up.
With this setup, we can properly render our scene from several windows / widgets, but since we have to change contexts for every window, we need to disable VAOs and query timers in BGFX to avoid crashes or errors (as container and query objects cannot be shared between contexts)
https://www.khronos.org/opengl/wiki/OpenGL_Object#Object_Sharing
So my question is how to use or modify BGFX properly to allow full function usage ?
I see that BGFX doesn't allow to change context after init, so it seems difficult to associate container object to a context.
Thanks !
To illustrate:
Beta Was this translation helpful? Give feedback.
All reactions