From 0d2752a276e2bcda225088728e28925611421344 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 9 May 2014 22:44:40 +0200 Subject: [PATCH] Add driver.menu-ctx->frame triggering inside gl_frame function - Lakka GL iteration should be invoked here instead of the ifdef. Currently delta animation goes way too slow if 'frame' function of lakka driver is hooked up properly - hence the #LAKKA hack is still in place. --- gfx/gl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gfx/gl.c b/gfx/gl.c index 9a25e82970..db556b0d74 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -1514,6 +1514,9 @@ static bool gl_frame(void *data, const void *frame, unsigned width, unsigned hei gl_set_prev_texture(gl, &tex_info); #if defined(HAVE_MENU) + if (g_extern.lifecycle_state & (1ULL << MODE_MENU) && driver.menu_ctx && driver.menu_ctx->frame) + driver.menu_ctx->frame(gl); + if (gl->rgui_texture_enable) #if defined(HAVE_LAKKA) lakka_render(gl);