add a warning if v2 api is sent into graphics-server which is v1 only

This commit is contained in:
bunnie 2025-03-03 02:14:05 +08:00
parent 558b96cfd5
commit 85a216ff0f

View file

@ -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.");