From 9e2ae7c500ad7d9d50b9399b8f22dad2245f5404 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 15 Nov 2012 15:07:34 +0100 Subject: [PATCH] (PS3) Fix FPS counter - note to maister - don't change this back again - FPS message will not appear correctly if this variable is not static --- gfx/gl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/gl.c b/gfx/gl.c index 936dab396a..ff80d2eda1 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -1124,7 +1124,7 @@ static bool gl_frame(void *data, const void *frame, unsigned width, unsigned hei bool fps_enable = g_extern.console.rmenu.state.msg_fps.enable; if (fps_enable) { - char fps_txt[128]; + static char fps_txt[128]; gfx_window_title(fps_txt, sizeof(fps_txt)); gl_render_msg_place(gl, g_settings.video.msg_pos_x, 0.56f, 1.04f, WHITE, fps_txt); }