diff --git a/gfx/d3d/d3d.cpp b/gfx/d3d/d3d.cpp index 7a75c3899f..70856a1e9f 100644 --- a/gfx/d3d/d3d.cpp +++ b/gfx/d3d/d3d.cpp @@ -276,7 +276,6 @@ static bool d3d_initialize(d3d_video_t *d3d, const video_info_t *info) bool ret = true; settings_t *settings = config_get_ptr(); driver_t *driver = driver_get_ptr(); - global_t *global = global_get_ptr(); if (!d3d) return false; @@ -417,7 +416,6 @@ static void d3d_calculate_rect(d3d_video_t *d3d, bool keep, float desired_aspect) { settings_t *settings = config_get_ptr(); - global_t *global = global_get_ptr(); if (settings->video.scale_integer) { @@ -579,7 +577,6 @@ static bool d3d_construct(d3d_video_t *d3d, unsigned full_x, full_y; driver_t *driver = driver_get_ptr(); settings_t *settings = config_get_ptr(); - global_t *global = global_get_ptr(); d3d->should_resize = false; @@ -1366,7 +1363,6 @@ static void d3d_overlay_render(d3d_video_t *d3d, overlay_t *overlay) D3DDECL_END() }; #endif - global_t *global = global_get_ptr(); if (!d3d) return; @@ -1636,7 +1632,6 @@ static bool d3d_frame(void *data, const void *frame, runloop_t *runloop = rarch_main_get_ptr(); driver_t *driver = driver_get_ptr(); settings_t *settings = config_get_ptr(); - global_t *global = global_get_ptr(); const font_renderer_t *font_ctx = driver->font_osd_driver; (void)i; diff --git a/gfx/drivers/omap_gfx.c b/gfx/drivers/omap_gfx.c index 46997771f3..f781159ff2 100644 --- a/gfx/drivers/omap_gfx.c +++ b/gfx/drivers/omap_gfx.c @@ -392,7 +392,6 @@ static int omapfb_alloc_mem(omapfb_data_t *pdata) void* mem = NULL; const struct retro_game_geometry *geom = NULL; struct retro_system_av_info *av_info = NULL; - global_t *global = global_get_ptr(); assert(pdata->current_state == NULL); diff --git a/gfx/drivers/psp1_gfx.c b/gfx/drivers/psp1_gfx.c index 0fb524f2ec..5ab03127c5 100644 --- a/gfx/drivers/psp1_gfx.c +++ b/gfx/drivers/psp1_gfx.c @@ -258,7 +258,6 @@ static void *psp_init(const video_info_t *video, int pixel_format, lut_pixel_format, lut_block_count; unsigned int red_shift, color_mask; void *displayBuffer, *LUT_r, *LUT_b; - global_t *global = global_get_ptr(); psp1_video_t *psp = (psp1_video_t*)calloc(1, sizeof(psp1_video_t)); if (!psp) @@ -698,7 +697,6 @@ static void psp_update_viewport(psp1_video_t* psp) float width = SCEGU_SCR_WIDTH; float height = SCEGU_SCR_HEIGHT; settings_t *settings = config_get_ptr(); - global_t *global = global_get_ptr(); if (settings->video.scale_integer) { diff --git a/gfx/drivers/sdl2_gfx.c b/gfx/drivers/sdl2_gfx.c index 5f2ce5ceba..21fa032f1f 100644 --- a/gfx/drivers/sdl2_gfx.c +++ b/gfx/drivers/sdl2_gfx.c @@ -262,7 +262,6 @@ static void sdl_refresh_viewport(sdl2_video_t *vid) { int win_w, win_h; settings_t *settings = config_get_ptr(); - global_t *global = global_get_ptr(); SDL_GetWindowSize(vid->window, &win_w, &win_h); diff --git a/gfx/drivers/xvideo.c b/gfx/drivers/xvideo.c index 78ad1f869b..c3e4d751c4 100644 --- a/gfx/drivers/xvideo.c +++ b/gfx/drivers/xvideo.c @@ -421,7 +421,6 @@ static void *xv_init(const video_info_t *video, XvAdaptorInfo *adaptor_info = NULL; driver_t *driver = driver_get_ptr(); settings_t *settings = config_get_ptr(); - global_t *global = global_get_ptr(); const struct retro_game_geometry *geom = NULL; struct retro_system_av_info *av_info = NULL; xv_t *xv = (xv_t*)calloc(1, sizeof(*xv)); diff --git a/gfx/drivers_context/drm_egl_ctx.c b/gfx/drivers_context/drm_egl_ctx.c index c1c734238f..65ff5f048e 100644 --- a/gfx/drivers_context/drm_egl_ctx.c +++ b/gfx/drivers_context/drm_egl_ctx.c @@ -599,7 +599,6 @@ static EGLint *egl_fill_attribs(EGLint *attr) #ifdef GL_DEBUG bool debug = true; #else - global_t *global = global_get_ptr(); const struct retro_hw_render_callback *hw_render = (const struct retro_hw_render_callback*)video_driver_callback(); bool debug = hw_render->debug_context;