[patch] Problems with text rendering

If you are having an issue or problem with the forum let us know, we will try to fix it as quickly as possible.

Moderators: Main Administator, Moderator, Global Moderator

Post Reply
AMDmi3
Xmoto Player
Xmoto Player
Posts: 2
Joined: Mon Apr 09, 2007 10:35 pm

[patch] Problems with text rendering

Post by AMDmi3 » Mon Nov 24, 2014 7:37 pm

On recent FreeBSD, xmoto text rendering (in menu controls, for example) is totally broken: most text is not shown, just some letters pop up here and there. I've investigated and it seems that the cause is incorrect usage of hash_maps with const char* keys, which don't work as one may expect (e.g. as hash_map<std::string, ...> do). As I haven't seen mentions of this problem, so it likely doesn't show up on gcc/libstdc++, but FreeBSD uses clang/libc++. I have a patch for the problem which fixes it for me, hope it will be useful for others and merged into xmoto source repository.

https://people.freebsd.org/~amdmi3/xmot ... -fix.patch

Post Reply

Return to “Problems”

Who is online

Users browsing this forum: No registered users and 1 guest