f1nalspace / final_game_tech

Game related libraries written in C/C++ written by T. Spaete
MIT License
175 stars 10 forks source link

Hard-Crash when running FPL_NBodySimulation #126

Closed f1nalspace closed 3 years ago

f1nalspace commented 3 years ago

Running the NBody simulations crashes hard in the fplPlatformInit() code, due to a misconfiguration of the defines in the main and the FPL translation unit.

If you compile out Vulkan, you need to compile that out in the main translation unit (FPL_ENTRYPOINT) and in the FPL translation unit (FPL_NO_ENTRYPOINT + FPL_IMPLEMENTATION) as well.

Otherwise, we will get a serious weird crash, that feels horrible and prevents everything to work correctly, due to mismatch linking.

f1nalspace commented 3 years ago

Fixed in https://github.com/f1nalspace/final_game_tech/commit/1af059c5e89586951575112454e38fbd80826337