Build: Don't include AGL context wrapper for libretro

This commit is contained in:
Connor McLaughlin 2020-09-13 11:56:56 +10:00
parent 3847be86b0
commit a0f6b4ce81
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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