Skip to content

Commit ca52453

Browse files
committed
Merge pull request godotengine#111663 from LanzaSchneider/patch-4
Fix compilation errors when `disable_xr=yes`
2 parents 57e041d + 80ce189 commit ca52453

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scene/main/viewport.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ bool Viewport::_set_size(const Size2i &p_size, const Size2 &p_size_2d_override,
11181118
stretch_transform = stretch_transform_new;
11191119
font_oversampling = new_font_oversampling;
11201120

1121-
#ifndef _3D_DISABLED
1121+
#ifndef XR_DISABLED
11221122
if (!use_xr) {
11231123
#endif
11241124

@@ -1128,7 +1128,7 @@ bool Viewport::_set_size(const Size2i &p_size, const Size2 &p_size_2d_override,
11281128
RS::get_singleton()->viewport_set_size(viewport, 0, 0);
11291129
}
11301130

1131-
#ifndef _3D_DISABLED
1131+
#ifndef XR_DISABLED
11321132
} // if (!use_xr)
11331133
#endif
11341134

0 commit comments

Comments
 (0)