Skip to content

Commit ed5f6bb

Browse files
committed
visionOS: Do not show boot logo in immersive mode
1 parent 944a3c6 commit ed5f6bb

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

drivers/apple_embedded/godot_renderer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,6 @@ inline void safeDispatchSyncToMain(void (^block)(void)) {
4545
@property(assign, readonly, nonatomic) BOOL hasFinishedSetup;
4646

4747
- (BOOL)setUp;
48+
- (void)setUpProjectDataShowingBootLogo:(BOOL)p_show_boot_logo;
4849

4950
@end

drivers/apple_embedded/godot_renderer.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ - (BOOL)setUp {
5555
}
5656

5757
if (!self.hasCalledProjectDataSetUp) {
58-
[self setUpProjectData];
58+
[self setUpProjectDataShowingBootLogo:YES];
5959
}
6060

6161
if (!self.hasStartedMain) {
@@ -67,10 +67,10 @@ - (BOOL)setUp {
6767
return NO;
6868
}
6969

70-
- (void)setUpProjectData {
70+
- (void)setUpProjectDataShowingBootLogo:(BOOL)p_show_boot_logo {
7171
self.hasCalledProjectDataSetUp = YES;
7272
safeDispatchSyncToMain(^{
73-
Main::setup2();
73+
Main::setup2(p_show_boot_logo);
7474

7575
// this might be necessary before here
7676
NSDictionary *dict = [[NSBundle mainBundle] infoDictionary];

platform/visionos/godot_compositor_services_renderer.mm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ - (instancetype)initWithLayerRenderer:(cp_layer_renderer_t)layer_renderer
5858
return self;
5959
}
6060

61+
// On visionOS Compositor Services mode (used by the visionOS XR module),
62+
// there's no way to easily show the boot logo on a simple quad.
63+
- (void)setUpProjectDataShowingBootLogo:(BOOL)p_show_boot_logo {
64+
[super setUpProjectDataShowingBootLogo:NO];
65+
}
66+
6167
- (void)updateXRInterface {
6268
Ref<VisionOSXRInterface> visionos_xr_interface = VisionOSXRInterface::find_interface();
6369
if (visionos_xr_interface.is_valid()) {

0 commit comments

Comments
 (0)