emscripten-core / emscripten-core/emscripten

SDL_TTF and freetype not building with PTHREADS

未关闭
#13,402 2 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C++
星标
27.6k
派生
3.6k
平均合并
1 天 6 小时
30 天内合并 PR
109

描述

If using SDL2 with threads then sdl2_ttf.py and freetype.py don't compile a -mt version of the library automatically like sdl2.py does.

We found that the linker dosnt seem to complain about linking the non-mt versionf of these librarys, but when using TTF_OpenFont you get heap corruption at runtime.

I changed sdl2.ttf.py and freetype to compile with USE_PTHREADS, linked with those library's and it fixed the heap corruption.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。