From a555e2d9b0ccee452996381a44677b8bec210036 Mon Sep 17 00:00:00 2001 From: gregorycu Date: Sat, 24 Jan 2015 13:03:57 +1100 Subject: Make the GameGlobalShaderConstantSetter use the settings callback (8% perf improvement in game loop) Amend the settings callback to support userdata --- src/fontengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fontengine.cpp') 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(); } -- cgit v1.2.3