(Libretro) Allow a DX11 only core to be built. (#657)

Main use case is Xbox systems.
This commit is contained in:
Gabriel Morazán 2022-06-01 16:27:51 -04:00 committed by GitHub
parent 26c8e8dab8
commit 3ec7f293ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 4 deletions

View File

@ -893,6 +893,8 @@ target_sources(${PROJECT_NAME} PRIVATE
target_sources(${PROJECT_NAME} PRIVATE
core/wsi/context.h
core/wsi/libretro.cpp
core/wsi/libretro.h
core/wsi/switcher.cpp)
if(USE_OPENGL)
@ -902,8 +904,6 @@ if(USE_OPENGL)
core/wsi/egl.h
core/wsi/gl_context.cpp
core/wsi/gl_context.h
core/wsi/libretro.cpp
core/wsi/libretro.h
core/wsi/osx.cpp
core/wsi/osx.h
core/wsi/sdl.cpp

View File

@ -19,7 +19,10 @@
#include "libretro.h"
#ifdef LIBRETRO
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
LibretroGraphicsContext theGLContext;
#endif
GraphicsContext *GraphicsContext::instance;
#endif

View File

@ -17,7 +17,7 @@
along with Flycast. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifdef LIBRETRO
#if defined(LIBRETRO) && (defined(HAVE_OPENGL) || defined(HAVE_OPENGLES))
#include "gl_context.h"
#include <libretro.h>
#include <glsm/glsm.h>

View File

@ -36,6 +36,7 @@
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
#include <glsm/glsm.h>
#include "wsi/gl_context.h"
#endif
#ifdef HAVE_VULKAN
#include "rend/vulkan/vulkan_context.h"
@ -62,7 +63,6 @@
#include "rend/CustomTexture.h"
#include "rend/osd.h"
#include "cfg/option.h"
#include "wsi/gl_context.h"
#include "version.h"
constexpr char slash = path_default_slash_c();