Message 1 of 1
Retrieve and set Maya's GL context.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've overridden MPxDrawOverride with
void drawCallback(const MDrawContext& drawContext, const MUserData* data)
during which I'm changing the GL context and doing some rendering in a different window. It works but the Maya meshes are no longer rendered. Simply calling
glfwMakeContextCurrent(window);
is enough to stop them rendering.
Does anybody know I would store the original Maya GL context and set it back again once I'm done?