Skip to content

Commit

Permalink
Merge pull request #82876 from bruvzg/old_xc_build_fix
Browse files Browse the repository at this point in the history
[macOS] Fix ambiguous method call with older SDKs.
  • Loading branch information
akien-mga committed Oct 5, 2023
2 parents 4c799d4 + abbdc99 commit 154d512
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform/macos/display_server_macos.mm
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@
ERR_FAIL_COND_V_MSG(err != OK, INVALID_WINDOW_ID, "Can't create an OpenGL context.");
}
if (gl_manager_angle) {
Error err = gl_manager_angle->window_create(window_id_counter, nullptr, (__bridge void *)[wd.window_view layer], p_rect.size.width, p_rect.size.height);
CALayer *layer = [(NSView *)wd.window_view layer];
Error err = gl_manager_angle->window_create(window_id_counter, nullptr, (__bridge void *)layer, p_rect.size.width, p_rect.size.height);
ERR_FAIL_COND_V_MSG(err != OK, INVALID_WINDOW_ID, "Can't create an OpenGL context.");
}
window_set_vsync_mode(p_vsync_mode, window_id_counter);
Expand Down

0 comments on commit 154d512

Please sign in to comment.