diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2019-01-07 17:05:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-07 17:05:18 +0100 |
commit | 95d4ff6d1b62945decc85003a99588bb0539c45b (patch) | |
tree | f8658b1ff6fa97926c125b53c86402392728f22b /builtin/game/misc.lua | |
parent | 07c1c72aae71bd4405ec8e52bfa841b483de7198 (diff) | |
download | minetest-95d4ff6d1b62945decc85003a99588bb0539c45b.tar.gz minetest-95d4ff6d1b62945decc85003a99588bb0539c45b.tar.bz2 minetest-95d4ff6d1b62945decc85003a99588bb0539c45b.zip |
Fix a crash on Android with Align2Npot2 (#8070)
* Fix a crash on Android with Align2Npot2
glGetString can be NULL. If stored in a string it triggers a SIGSEGV.
Instead do a basic strstr and verify the pointer
* Better Align2Npot2 check (+ performance)
Diffstat (limited to 'builtin/game/misc.lua')
0 files changed, 0 insertions, 0 deletions