Make the editor draw early in the frame to properly set the flags used in the editor

This commit is contained in:
2025-07-07 07:28:31 -04:00
parent a581167014
commit ed6a8d0fda

View File

@@ -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.