Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bgfx's multi-threading crushes with macOS's OpenGL and Metal #12

Open
yuki-koyama opened this issue Dec 27, 2020 · 0 comments
Open

bgfx's multi-threading crushes with macOS's OpenGL and Metal #12

yuki-koyama opened this issue Dec 27, 2020 · 0 comments

Comments

@yuki-koyama
Copy link
Owner

Currently bigger avoids this issue by an ad hoc hot-fix:

bigger/CMakeLists.txt

Lines 27 to 31 in 07687b0

# Note: This was necessary to avoid a run-time error on macOS/OpenGL. Without
# this option, the NSOpenGLViewContext's setView method was called from a
# wrong (?) thread during bgfx::init and then the app crashes. This needs to be
# investigated further.
target_compile_definitions(bgfx PUBLIC BGFX_CONFIG_MULTITHREADED=0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant