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)
|
||||
endif()
|
||||
|
||||
if(APPLE)
|
||||
if(APPLE AND NOT BUILD_LIBRETRO_CORE)
|
||||
target_sources(common PRIVATE
|
||||
gl/context_agl.mm
|
||||
gl/context_agl.h
|
||||
|
|
|
@ -11,7 +11,7 @@ Log_SetChannel(GL::Context);
|
|||
|
||||
#if defined(WIN32)
|
||||
#include "context_wgl.h"
|
||||
#elif defined(__APPLE__)
|
||||
#elif defined(__APPLE__) && !defined(LIBERTRO)
|
||||
#include "context_agl.h"
|
||||
#endif
|
||||
|
||||
|
@ -74,7 +74,7 @@ std::unique_ptr<GL::Context> Context::Create(const WindowInfo& wi, const Version
|
|||
std::unique_ptr<Context> context;
|
||||
#if defined(WIN32)
|
||||
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);
|
||||
#elif defined(ANDROID)
|
||||
#ifdef USE_EGL
|
||||
|
|
Loading…
Reference in New Issue