(Libretro) Allow a DX11 only core to be built. (#657)
Main use case is Xbox systems.
This commit is contained in:
parent
26c8e8dab8
commit
3ec7f293ee
|
@ -893,6 +893,8 @@ target_sources(${PROJECT_NAME} PRIVATE
|
||||||
|
|
||||||
target_sources(${PROJECT_NAME} PRIVATE
|
target_sources(${PROJECT_NAME} PRIVATE
|
||||||
core/wsi/context.h
|
core/wsi/context.h
|
||||||
|
core/wsi/libretro.cpp
|
||||||
|
core/wsi/libretro.h
|
||||||
core/wsi/switcher.cpp)
|
core/wsi/switcher.cpp)
|
||||||
|
|
||||||
if(USE_OPENGL)
|
if(USE_OPENGL)
|
||||||
|
@ -902,8 +904,6 @@ if(USE_OPENGL)
|
||||||
core/wsi/egl.h
|
core/wsi/egl.h
|
||||||
core/wsi/gl_context.cpp
|
core/wsi/gl_context.cpp
|
||||||
core/wsi/gl_context.h
|
core/wsi/gl_context.h
|
||||||
core/wsi/libretro.cpp
|
|
||||||
core/wsi/libretro.h
|
|
||||||
core/wsi/osx.cpp
|
core/wsi/osx.cpp
|
||||||
core/wsi/osx.h
|
core/wsi/osx.h
|
||||||
core/wsi/sdl.cpp
|
core/wsi/sdl.cpp
|
||||||
|
|
|
@ -19,7 +19,10 @@
|
||||||
#include "libretro.h"
|
#include "libretro.h"
|
||||||
|
|
||||||
#ifdef LIBRETRO
|
#ifdef LIBRETRO
|
||||||
|
|
||||||
|
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
|
||||||
LibretroGraphicsContext theGLContext;
|
LibretroGraphicsContext theGLContext;
|
||||||
|
#endif
|
||||||
|
|
||||||
GraphicsContext *GraphicsContext::instance;
|
GraphicsContext *GraphicsContext::instance;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
along with Flycast. If not, see <https://www.gnu.org/licenses/>.
|
along with Flycast. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
#ifdef LIBRETRO
|
#if defined(LIBRETRO) && (defined(HAVE_OPENGL) || defined(HAVE_OPENGLES))
|
||||||
#include "gl_context.h"
|
#include "gl_context.h"
|
||||||
#include <libretro.h>
|
#include <libretro.h>
|
||||||
#include <glsm/glsm.h>
|
#include <glsm/glsm.h>
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
|
|
||||||
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
|
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
|
||||||
#include <glsm/glsm.h>
|
#include <glsm/glsm.h>
|
||||||
|
#include "wsi/gl_context.h"
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_VULKAN
|
#ifdef HAVE_VULKAN
|
||||||
#include "rend/vulkan/vulkan_context.h"
|
#include "rend/vulkan/vulkan_context.h"
|
||||||
|
@ -62,7 +63,6 @@
|
||||||
#include "rend/CustomTexture.h"
|
#include "rend/CustomTexture.h"
|
||||||
#include "rend/osd.h"
|
#include "rend/osd.h"
|
||||||
#include "cfg/option.h"
|
#include "cfg/option.h"
|
||||||
#include "wsi/gl_context.h"
|
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
|
||||||
constexpr char slash = path_default_slash_c();
|
constexpr char slash = path_default_slash_c();
|
||||||
|
|
Loading…
Reference in New Issue