Retrieve and set Maya's GL context.

Retrieve and set Maya's GL context.

livinamukS9FUA
Participant Participant
172 Views
0 Replies
Message 1 of 1

Retrieve and set Maya's GL context.

livinamukS9FUA
Participant
Participant

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?

0 Likes
173 Views
0 Replies
Replies (0)