(PS3) Implement swap callback as well

This commit is contained in:
TwinAphex51224 2012-02-13 22:25:25 +01:00
parent 786adb23ac
commit d77560f1ea
3 changed files with 13 additions and 6 deletions

View File

@ -1806,8 +1806,7 @@ static void ingame_menu(uint32_t menu_id)
ssnes_render_cached_frame();
psglSwap();
cellSysutilCheckCallback();
video_gl.swap(NULL);
old_state = state;
}
}
@ -2034,9 +2033,7 @@ void menu_loop(void)
SET_TIMER_EXPIRATION(30);
}
psglSwap();
cell_console_poll();
cellSysutilCheckCallback();
video_gl.swap(NULL);
}while (g_console.menu_enable);
if(g_console.ingame_menu_enable)

View File

@ -1071,6 +1071,14 @@ static void ps3graphics_set_swap_block_swap(void * data, bool toggle)
SSNES_LOG("Swap is set to non-blocked\n");
}
static void ps3graphics_swap(void * data)
{
(void)data;
psglSwap();
cell_console_poll();
cellSysutilCheckCallback();
}
const video_driver_t video_gl = {
.init = gl_init,
.frame = gl_frame,
@ -1079,7 +1087,8 @@ const video_driver_t video_gl = {
.focus = gl_focus,
.free = gl_free,
.ident = "gl",
.set_swap_block_state = ps3graphics_set_swap_block_swap
.set_swap_block_state = ps3graphics_set_swap_block_swap,
.swap = ps3graphics_swap
};
static void get_all_available_resolutions (void)

View File

@ -22,6 +22,7 @@
#include "../gfx/gl_common.h"
#include "../gfx/gfx_common.h"
#include "../gfx/image.h"
#include "menu-port-defines.h"
#include <cell/dbgfont.h>
#define MAX_SHADERS 16