hcabel / OpenVoxel

OpenVoxel is a Open source voxel game engine/editor
GNU General Public License v3.0
15 stars 2 forks source link

Module are loaded multiple times #50

Closed hcabel closed 1 year ago

hcabel commented 1 year ago

When I launch the engine I have multiple glfw window, this happen because the renderer module is loaded multiple times.

The bug occur because renderer dll is registered multiple time, and the module is registered using inline which for some reason is mess up, I suspect that I came from the dll architecture. Anyway replace the REGISTER macro to use the DECLARE/DEFINE macros pattern.

hcabel commented 1 year ago

Turn out I remove a little something that I though was pointless but turned out to be essential. 😬