Skip to content

Commit 865acd0

Browse files
committed
Show MetalFX options in the Scaling 3D Mode enum on all platforms
Previously, the MetalFX scaling modes were only displayed in the `macos` and `ios` feature tag overrides if the editor had Metal support enabled. However, this is only available on the macOS editor, which caused two issues: - You couldn't set the 3D scaling mode to MetalFX for `macos` or `ios` if you were using the editor on another platform. - If you opened a project that was last edited on macOS with MetalFX scaling modes set for these overrides, it would show an unknown value or revert to the default when saving to the project (as the enum value didn't exist anymore on your end).
1 parent 4cf0231 commit 865acd0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

servers/rendering_server.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3670,10 +3670,9 @@ void RenderingServer::init() {
36703670
{
36713671
Vector<String> mode_hints_arr = { "Bilinear (Fastest)", "FSR 1.0 (Fast)", "FSR 2.2 (Slow)" };
36723672
mode_hints = String(",").join(mode_hints_arr);
3673-
#ifdef METAL_ENABLED
3673+
36743674
mode_hints_arr.push_back("MetalFX (Spatial)");
36753675
mode_hints_arr.push_back("MetalFX (Temporal)");
3676-
#endif
36773676
mode_hints_metal = String(",").join(mode_hints_arr);
36783677
}
36793678

0 commit comments

Comments
 (0)