Browse Source

[cmake] remove unused YUZU_UNIX define (#2875)

Signed-off-by: lizzie <lizzie@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2875
Reviewed-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
Reviewed-by: crueter <crueter@eden-emu.dev>
Co-authored-by: lizzie <lizzie@eden-emu.dev>
Co-committed-by: lizzie <lizzie@eden-emu.dev>
pull/2856/head
lizzie 2 months ago
committed by crueter
parent
commit
2e092d5f5d
No known key found for this signature in database GPG Key ID: 425ACD2D4830EBC6
  1. 4
      CMakeLists.txt
  2. 2
      src/video_core/renderer_opengl/gl_device.cpp

4
CMakeLists.txt

@ -344,10 +344,6 @@ if (NOT EXISTS ${PROJECT_BINARY_DIR}/dist/compatibility_list/compatibility_list.
file(WRITE ${PROJECT_BINARY_DIR}/dist/compatibility_list/compatibility_list.json "")
endif()
if (UNIX)
add_compile_definitions(YUZU_UNIX=1)
endif()
if (YUZU_LEGACY)
message(WARNING "Making legacy build. Performance may suffer.")
add_compile_definitions(YUZU_LEGACY)

2
src/video_core/renderer_opengl/gl_device.cpp

@ -124,7 +124,7 @@ static bool HasSlowSoftwareAstc(std::string_view vendor_name, std::string_view r
return true;
}
if (vendor_name == "Intel") {
// Must be inside YUZU_UNIX ifdef as the Windows driver uses the same vendor string
// Must be inside Unix ifdef as the Windows driver uses the same vendor string
// iris, crocus
const bool is_intel_dg = (renderer.find("DG") != std::string_view::npos);
return is_intel_dg;

Loading…
Cancel
Save