aboutsummaryrefslogtreecommitdiff
path: root/src/fontengine.cpp
diff options
context:
space:
mode:
authorgregorycu <gregory.currie@gmail.com>2015-01-24 13:03:57 +1100
committerkwolekr <kwolekr@minetest.net>2015-01-23 21:27:51 -0500
commita555e2d9b0ccee452996381a44677b8bec210036 (patch)
treeb9a20391fba2c462701fd7547b9c66e0c7738289 /src/fontengine.cpp
parentaafbbcd537abf5a31bba665d4255917c813f8dd3 (diff)
downloadminetest-a555e2d9b0ccee452996381a44677b8bec210036.tar.gz
minetest-a555e2d9b0ccee452996381a44677b8bec210036.tar.bz2
minetest-a555e2d9b0ccee452996381a44677b8bec210036.zip
Make the GameGlobalShaderConstantSetter use the settings callback (8% perf improvement in game loop)
Amend the settings callback to support userdata
Diffstat (limited to 'src/fontengine.cpp')
-rw-r--r--src/fontengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fontengine.cpp b/src/fontengine.cpp
index 79d53c989..2df6bf833 100644
--- a/src/fontengine.cpp
+++ b/src/fontengine.cpp
@@ -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();
}