mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
Build: Don't include AGL context wrapper for libretro
This commit is contained in:
parent
3847be86b0
commit
a0f6b4ce81
|
@ -172,7 +172,7 @@ if(USE_WAYLAND)
|
||||||
target_link_libraries(common PRIVATE Wayland::Egl)
|
target_link_libraries(common PRIVATE Wayland::Egl)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE AND NOT BUILD_LIBRETRO_CORE)
|
||||||
target_sources(common PRIVATE
|
target_sources(common PRIVATE
|
||||||
gl/context_agl.mm
|
gl/context_agl.mm
|
||||||
gl/context_agl.h
|
gl/context_agl.h
|
||||||
|
|
|
@ -11,7 +11,7 @@ Log_SetChannel(GL::Context);
|
||||||
|
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
#include "context_wgl.h"
|
#include "context_wgl.h"
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__) && !defined(LIBERTRO)
|
||||||
#include "context_agl.h"
|
#include "context_agl.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ std::unique_ptr<GL::Context> Context::Create(const WindowInfo& wi, const Version
|
||||||
std::unique_ptr<Context> context;
|
std::unique_ptr<Context> context;
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
context = ContextWGL::Create(wi, versions_to_try, num_versions_to_try);
|
context = ContextWGL::Create(wi, versions_to_try, num_versions_to_try);
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__) && !defined(LIBRETRO)
|
||||||
context = ContextAGL::Create(wi, versions_to_try, num_versions_to_try);
|
context = ContextAGL::Create(wi, versions_to_try, num_versions_to_try);
|
||||||
#elif defined(ANDROID)
|
#elif defined(ANDROID)
|
||||||
#ifdef USE_EGL
|
#ifdef USE_EGL
|
||||||
|
|
Loading…
Reference in a new issue