Make gfx_ctx_get_ptr static

This commit is contained in:
twinaphex 2015-04-10 09:15:25 +02:00
parent ced227c214
commit ffc5ba0980
4 changed files with 1 additions and 8 deletions

View File

@ -428,7 +428,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();
const gfx_ctx_driver_t *ctx = gfx_ctx_get_ptr();
d3d->should_resize = false;
@ -1468,7 +1467,6 @@ static bool d3d_frame(void *data, const void *frame,
settings_t *settings = config_get_ptr();
global_t *global = global_get_ptr();
const font_renderer_t *font_ctx = d3d ? (const font_renderer_t*)d3d->font_driver : NULL;
const gfx_ctx_driver_t *ctx = gfx_ctx_get_ptr();
(void)i;

View File

@ -1188,9 +1188,6 @@ static void gl_init_textures_data(gl_t *gl)
static void gl_init_textures(gl_t *gl, const video_info_t *video)
{
unsigned i;
const gfx_ctx_driver_t *ctx = gfx_ctx_get_ptr();
(void)ctx;
#if defined(HAVE_EGL) && defined(HAVE_OPENGLES2)
// Use regular textures if we use HW render.

View File

@ -74,7 +74,7 @@ static const gfx_ctx_driver_t *gfx_ctx_drivers[] = {
};
const gfx_ctx_driver_t *gfx_ctx_get_ptr(void)
static const gfx_ctx_driver_t *gfx_ctx_get_ptr(void)
{
driver_t *driver = driver_get_ptr();
if (!driver)

View File

@ -198,8 +198,6 @@ void find_next_context_driver(void);
**/
void find_prev_gfx_context_driver(void);
const gfx_ctx_driver_t *gfx_ctx_get_ptr(void);
bool gfx_ctx_get_metrics(enum display_metric_types type, float *value);
void gfx_ctx_translate_aspect(void *data, float *aspect,