From ddc94054cb76e32bf123ac151e75f5d3e192b3f7 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 18 Dec 2012 09:17:40 +0100 Subject: [PATCH] Get rid of RMenu context clear function --- console/rmenu/rmenu.c | 2 -- gfx/context/ps3_ctx.c | 6 ------ gfx/context/xdk_ctx.c | 18 ------------------ gfx/gfx_context.h | 1 - 4 files changed, 27 deletions(-) diff --git a/console/rmenu/rmenu.c b/console/rmenu/rmenu.c index 0352c13cce..0ea3d765a3 100644 --- a/console/rmenu/rmenu.c +++ b/console/rmenu/rmenu.c @@ -2421,8 +2421,6 @@ bool rmenu_iterate(void) rmenu_default_positions_t default_pos; device_ptr->ctx_driver->rmenu_set_default_pos(&default_pos); - device_ptr->ctx_driver->clear(); - if (g_extern.draw_menu) device_ptr->ctx_driver->set_blend(true); diff --git a/gfx/context/ps3_ctx.c b/gfx/context/ps3_ctx.c index 18ec9c8e26..924bb5364e 100644 --- a/gfx/context/ps3_ctx.c +++ b/gfx/context/ps3_ctx.c @@ -275,11 +275,6 @@ static void gfx_ctx_swap_buffers(void) #endif } -static void gfx_ctx_clear(void) -{ - glClear(GL_COLOR_BUFFER_BIT); -} - static void gfx_ctx_set_blend(bool enable) { if(enable) @@ -542,7 +537,6 @@ const gfx_ctx_driver_t gfx_ctx_ps3 = { gfx_ctx_write_egl_image, "ps3", #ifdef HAVE_RMENU - gfx_ctx_clear, gfx_ctx_set_blend, gfx_ctx_set_filtering, gfx_ctx_get_available_resolutions, diff --git a/gfx/context/xdk_ctx.c b/gfx/context/xdk_ctx.c index 00786a9e31..269fac0ff2 100644 --- a/gfx/context/xdk_ctx.c +++ b/gfx/context/xdk_ctx.c @@ -186,23 +186,6 @@ static void gfx_ctx_xdk_swap_buffers(void) d3d->d3d_render_device->Present(NULL, NULL, NULL, NULL); } -static void gfx_ctx_xdk_clear(void) -{ - xdk_d3d_video_t *device_ptr = (xdk_d3d_video_t*)driver.video_data; -#ifdef _XBOX1 - unsigned flicker_filter = g_extern.console.screen.state.flicker_filter.value; - bool soft_filter_enable = g_extern.console.screen.state.soft_filter.enable; -#endif - - device_ptr->d3d_render_device->Clear(0, NULL, D3DCLEAR_TARGET, - D3DCOLOR_ARGB(0, 0, 0, 0), 1.0f, 0); -#ifdef _XBOX1 - device_ptr->d3d_render_device->BeginScene(); - device_ptr->d3d_render_device->SetFlickerFilter(flicker_filter); - device_ptr->d3d_render_device->SetSoftDisplayFilter(soft_filter_enable); -#endif -} - static bool gfx_ctx_xdk_window_has_focus(void) { return true; @@ -510,7 +493,6 @@ const gfx_ctx_driver_t gfx_ctx_xdk = { "xdk", // RARCH_CONSOLE stuff. - gfx_ctx_xdk_clear, gfx_ctx_xdk_set_blend, gfx_ctx_xdk_set_filtering, gfx_ctx_xdk_get_available_resolutions, diff --git a/gfx/gfx_context.h b/gfx/gfx_context.h index eb8f32adf1..b4adfc33cc 100644 --- a/gfx/gfx_context.h +++ b/gfx/gfx_context.h @@ -105,7 +105,6 @@ typedef struct gfx_ctx_driver const char *ident; #if defined(HAVE_RMENU) || defined(_XBOX360) - void (*clear)(void); void (*set_blend)(bool enable); void (*set_filtering)(unsigned index, bool set_smooth); void (*get_available_resolutions)(void);