Update other gfx_ctx_init_first calls

This commit is contained in:
twinaphex 2014-10-24 02:15:30 +02:00
parent 233f933187
commit 6eaec2fb97
2 changed files with 5 additions and 5 deletions

View File

@ -644,15 +644,14 @@ static const gfx_ctx_driver_t *d3d_get_context(void *data)
TODO: GL core contexts through ANGLE? */
enum gfx_ctx_api api = GFX_CTX_DIRECT3D9_API;
unsigned major = 9, minor = 0;
(void)major;
(void)minor;
#if defined(_XBOX1)
api = GFX_CTX_DIRECT3D8_API;
major = 8;
#endif
return gfx_ctx_init_first(driver.video_data, api,
major, minor, false);
return gfx_ctx_init_first(driver.video_data,
g_settings.video.context_driver,
api, major, minor, false);
}
static void *d3d_init(const video_info_t *info,

View File

@ -84,7 +84,8 @@ static void *vg_init(const video_info_t *video, const input_driver_t **input, vo
if (!vg)
return NULL;
vg->driver = gfx_ctx_init_first(vg, GFX_CTX_OPENVG_API, 0, 0, false);
vg->driver = gfx_ctx_init_first(vg, g_settings.video.context_driver,
GFX_CTX_OPENVG_API, 0, 0, false);
if (!vg->driver)
{