emscripten-core / emscripten-core/emscripten

SDL_TTF and freetype not building with PTHREADS

Ouverte
#13,402 2 commentaires 3 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
C++
Étoiles
27.6k
Forks
3.6k
Merge moyen
1 j 1 h
PR mergées (30 j)
105

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.