lizzie 4 days ago
committed by crueter
parent
commit
c40ff56e1f
  1. 7
      src/video_core/CMakeLists.txt
  2. 7
      src/video_core/video_core.cpp

7
src/video_core/CMakeLists.txt

@ -380,6 +380,13 @@ else()
endif() endif()
endif() endif()
if (NOT APPLE AND ENABLE_OPENGL)
target_compile_definitions(qt_common PUBLIC HAS_OPENGL)
endif()
if (ENABLE_VULKAN)
target_compile_definitions(qt_common PUBLIC HAS_VULKAN)
endif()
if (ARCHITECTURE_x86_64) if (ARCHITECTURE_x86_64)
target_link_libraries(video_core PUBLIC xbyak::xbyak) target_link_libraries(video_core PUBLIC xbyak::xbyak)
endif() endif()

7
src/video_core/video_core.cpp

@ -25,11 +25,8 @@
namespace { namespace {
std::unique_ptr<VideoCore::RendererBase> CreateRenderer(
Core::System& system, Core::Frontend::EmuWindow& emu_window, Tegra::GPU& gpu,
std::unique_ptr<Core::Frontend::GraphicsContext> context) {
auto& device_memory = system.Host1x().MemoryManager();
std::unique_ptr<VideoCore::RendererBase> CreateRenderer(Core::System& system, Core::Frontend::EmuWindow& emu_window, Tegra::GPU& gpu, std::unique_ptr<Core::Frontend::GraphicsContext> context) {
[[maybe_unused]] auto& device_memory = system.Host1x().MemoryManager();
switch (Settings::values.renderer_backend.GetValue()) { switch (Settings::values.renderer_backend.GetValue()) {
#ifdef HAS_OPENGL #ifdef HAS_OPENGL
case Settings::RendererBackend::OpenGL_GLSL: case Settings::RendererBackend::OpenGL_GLSL:

Loading…
Cancel
Save