From b2bda506de09635145b19e2947e4e170f5a1df0d Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 16 Jul 2024 23:38:23 +0200 Subject: [PATCH] Fix osx build. --- platform/osx/os_osx.mm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index 60932cb36..9bd0ef682 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -1766,15 +1766,12 @@ Error OS_OSX::initialize(const VideoMode &p_desired, int p_video_driver, int p_a if (p_video_driver == VIDEO_DRIVER_GLES2) { gles3 = false; } + + bool editor = Engine::get_singleton()->is_editor_hint(); #else bool gles2 = true; #endif - //if (p_video_driver == VIDEO_DRIVER_GLES2) { - // gles3 = false; - //} - - //bool editor = Engine::get_singleton()->is_editor_hint(); bool gl_initialization_error = false; while (true) {