1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Make the GameGlobalShaderConstantSetter use the settings callback (8% perf improvement in game loop)

Amend the settings callback to support userdata
This commit is contained in:
gregorycu 2015-01-24 13:03:57 +11:00 committed by kwolekr
parent aafbbcd537
commit a555e2d9b0
4 changed files with 27 additions and 11 deletions

View file

@ -36,7 +36,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
FontEngine* g_fontengine = NULL;
/** callback to be used on change of font size setting */
static void font_setting_changed(const std::string) {
static void font_setting_changed(const std::string, void *userdata) {
g_fontengine->readSettings();
}