lv2 / pugl

A minimal portable API for embeddable GUIs
https://gitlab.com/lv2/pugl/
ISC License
174 stars 34 forks source link

wc.hInstance = GetModuleHandle(NULL); #75

Closed jjYBdx4IL closed 2 years ago

jjYBdx4IL commented 2 years ago

The window class is registered for the main executable image under Windows. If you have two plugin instances each statically linked with their own pugl code, that is likely to cause issues. See here:

https://github.com/glfw/glfw/issues/1395

That issue also references GLFW's solution (you can get the current function's module handle via the function's address).

drobilla commented 2 years ago

Fixed in a8a0fed3, thanks.