From ed6a8d0fda1c777f4ae2d0d495d1bd62200c3ac5 Mon Sep 17 00:00:00 2001 From: kj16609 Date: Mon, 7 Jul 2025 07:28:31 -0400 Subject: [PATCH] Make the editor draw early in the frame to properly set the flags used in the editor --- src/editor/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/src/main.cpp b/src/editor/src/main.cpp index fb08060..3dd594c 100644 --- a/src/editor/src/main.cpp +++ b/src/editor/src/main.cpp @@ -52,7 +52,7 @@ int main() profiling::resetCounters(); } ); - engine_ctx.hookLateFrame( [ & ]( [[maybe_unused]] FrameInfo& info ) { editor_ctx.draw( info ); } ); + engine_ctx.hookEarlyFrame( [ & ]( [[maybe_unused]] FrameInfo& info ) { editor_ctx.draw( info ); } ); engine_ctx.hookLateFrame( [ & ]( FrameInfo& info ) { editor_ctx.endDraw( info ); } ); // Now we need to create the camera for the editor.