From 4c08bdc0e9b49ea41eaf321ab2af2b536deb81e4 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 1 Mar 2018 22:21:56 +0100 Subject: [PATCH] Add GFX_CTX_GX_API --- gfx/video_driver.c | 2 ++ gfx/video_driver.h | 1 + 2 files changed, 3 insertions(+) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 7e0bdca0d1..c8f6fd227f 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -3212,6 +3212,8 @@ enum gfx_ctx_api video_context_driver_get_api(void) return GFX_CTX_DIRECT3D12_API; else if (string_is_equal(video_driver, "gx2")) return GFX_CTX_GX2_API; + else if (string_is_equal(video_driver, "gx")) + return GFX_CTX_GX_API; else if (string_is_equal(video_driver, "gl")) return GFX_CTX_OPENGL_API; else if (string_is_equal(video_driver, "vulkan")) diff --git a/gfx/video_driver.h b/gfx/video_driver.h index ec970def8f..a4f40e64bc 100644 --- a/gfx/video_driver.h +++ b/gfx/video_driver.h @@ -96,6 +96,7 @@ enum gfx_ctx_api GFX_CTX_OPENVG_API, GFX_CTX_VULKAN_API, GFX_CTX_GDI_API, + GFX_CTX_GX_API, GFX_CTX_GX2_API };