mirror of
https://github.com/libretro/RetroArch
synced 2025-03-25 16:44:01 +00:00
(gfx_context) Fix warnings
This commit is contained in:
parent
bea3c59527
commit
c496ee71d2
@ -104,7 +104,7 @@ void find_next_context_driver(void)
|
|||||||
|
|
||||||
static const gfx_ctx_driver_t *ctx_init(void *data,
|
static const gfx_ctx_driver_t *ctx_init(void *data,
|
||||||
const gfx_ctx_driver_t *ctx,
|
const gfx_ctx_driver_t *ctx,
|
||||||
const char *driver,
|
const char *drv,
|
||||||
enum gfx_ctx_api api, unsigned major,
|
enum gfx_ctx_api api, unsigned major,
|
||||||
unsigned minor, bool hw_render_ctx)
|
unsigned minor, bool hw_render_ctx)
|
||||||
{
|
{
|
||||||
@ -173,13 +173,12 @@ static const gfx_ctx_driver_t *gfx_ctx_find_driver(void *data,
|
|||||||
|
|
||||||
|
|
||||||
const gfx_ctx_driver_t *gfx_ctx_init_first(void *data,
|
const gfx_ctx_driver_t *gfx_ctx_init_first(void *data,
|
||||||
const char *driver,
|
const char *drv,
|
||||||
enum gfx_ctx_api api, unsigned major,
|
enum gfx_ctx_api api, unsigned major,
|
||||||
unsigned minor, bool hw_render_ctx)
|
unsigned minor, bool hw_render_ctx)
|
||||||
{
|
{
|
||||||
unsigned i;
|
|
||||||
const gfx_ctx_driver_t *ctx = (const gfx_ctx_driver_t*)
|
const gfx_ctx_driver_t *ctx = (const gfx_ctx_driver_t*)
|
||||||
gfx_ctx_find_driver(data, driver, api, major, minor,
|
gfx_ctx_find_driver(data, drv, api, major, minor,
|
||||||
hw_render_ctx);
|
hw_render_ctx);
|
||||||
|
|
||||||
if (!ctx)
|
if (!ctx)
|
||||||
|
@ -149,6 +149,10 @@ extern const gfx_ctx_driver_t gfx_ctx_null;
|
|||||||
/* Finds first suitable driver and initializes. */
|
/* Finds first suitable driver and initializes. */
|
||||||
const gfx_ctx_driver_t *gfx_ctx_init_first(void *data, const char *driver,
|
const gfx_ctx_driver_t *gfx_ctx_init_first(void *data, const char *driver,
|
||||||
enum gfx_ctx_api api, unsigned major, unsigned minor, bool hw_render_ctx);
|
enum gfx_ctx_api api, unsigned major, unsigned minor, bool hw_render_ctx);
|
||||||
|
|
||||||
|
void find_next_context_driver(void);
|
||||||
|
|
||||||
|
void find_prev_gfx_context_driver(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
2
gfx/gl.c
2
gfx/gl.c
@ -2013,6 +2013,8 @@ static const gfx_ctx_driver_t *gl_get_context(gl_t *gl)
|
|||||||
enum gfx_ctx_api api = GFX_CTX_OPENGL_API;
|
enum gfx_ctx_api api = GFX_CTX_OPENGL_API;
|
||||||
const char *api_name = "OpenGL";
|
const char *api_name = "OpenGL";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
(void)api_name;
|
||||||
|
|
||||||
gl->shared_context_use = g_settings.video.shared_context
|
gl->shared_context_use = g_settings.video.shared_context
|
||||||
&& cb->context_type != RETRO_HW_CONTEXT_NONE;
|
&& cb->context_type != RETRO_HW_CONTEXT_NONE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user