From 85a216ff0f7fe41f613b4b62fe1da5380d01fde6 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 3 Mar 2025 02:14:05 +0800 Subject: [PATCH] add a warning if v2 api is sent into graphics-server which is v1 only --- services/graphics-server/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/graphics-server/src/main.rs b/services/graphics-server/src/main.rs index 85792b790..9ddd35545 100644 --- a/services/graphics-server/src/main.rs +++ b/services/graphics-server/src/main.rs @@ -471,6 +471,11 @@ fn wrapped_main(main_thread_token: backend::MainThreadToken) -> ! { } // no failure if it's not } + GfxOpcode::AcquireModal | GfxOpcode::ReleaseModal => { + unimplemented!( + "Acquire/Release modal is not supported for this target. Use the GAM instead." + ); + } GfxOpcode::Quit => break, GfxOpcode::InvalidCall => { log::error!("Received invalid GfxOpcode. Ignoring.");