Browse Source

[MoltenVK] Fix downscaled hiDPI window pixelation.

bruvzg 1 year ago
parent
commit
ab4213f043
1 changed files with 2 additions and 2 deletions
  1. 2 2
      platform/macos/godot_main_macos.mm

+ 2 - 2
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)