summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-07-04 23:27:23 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-07-04 23:27:23 +0200
commit20ba2f00bd9199b675176a8e1ac151f96bfb5cfa (patch)
tree5d2a6c464f420b73c3800e9e4cb7a27e1dae4839
parent8455b3343e723dbcaf4365e311371a80c448f121 (diff)
parentab4213f043b0de41a66e8868c0ee3d294bf71e44 (diff)
downloadredot-engine-20ba2f00bd9199b675176a8e1ac151f96bfb5cfa.tar.gz
Merge pull request #93950 from bruvzg/mvk_scaling
[MoltenVK] Fix downscaled hiDPI window pixelation.
-rw-r--r--platform/macos/godot_main_macos.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/macos/godot_main_macos.mm b/platform/macos/godot_main_macos.mm
index 942c351ac0..eebaed0eaf 100644
--- a/platform/macos/godot_main_macos.mm
+++ b/platform/macos/godot_main_macos.mm
@@ -41,8 +41,8 @@
int main(int argc, char **argv) {
#if defined(VULKAN_ENABLED)
- // MoltenVK - enable full component swizzling support.
- setenv("MVK_CONFIG_FULL_IMAGE_VIEW_SWIZZLE", "1", 1);
+ setenv("MVK_CONFIG_FULL_IMAGE_VIEW_SWIZZLE", "1", 1); // MoltenVK - enable full component swizzling support.
+ setenv("MVK_CONFIG_SWAPCHAIN_MIN_MAG_FILTER_USE_NEAREST", "0", 1); // MoltenVK - use linear surface scaling. TODO: remove when full DPI scaling is implemented.
#endif
#if defined(SANITIZERS_ENABLED)