Skip to content

Commit

Permalink
Merge pull request godotengine#93950 from bruvzg/mvk_scaling
Browse files Browse the repository at this point in the history
[MoltenVK] Fix downscaled hiDPI window pixelation.
  • Loading branch information
akien-mga committed Jul 4, 2024
2 parents 8455b33 + ab4213f commit 20ba2f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/macos/godot_main_macos.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 20ba2f0

Please sign in to comment.