modify graphics-server to ignore unimplemented opcodes

the opcode list is shared between multiple implementations, so
an invalid opcode might not necessarily be a severe bug.
This commit is contained in:
bunnie 2025-02-23 12:03:09 +08:00
parent f37df2b1cb
commit ef79ececb7

View file

@ -736,7 +736,11 @@ fn wrapped_main(main_thread_token: backend::MainThreadToken) -> ! {
}
Some(GfxOpcode::Quit) => break,
None => {
log::error!("received GfxOpcode scalar that is not handled");
log::error!("Received invalid GfxOpcode. Ignoring.");
}
_ => {
// This is perfectly normal because not all opcodes are handled by all platforms.
log::debug!("Invalid or unhandled opcode: {:?}", op);
}
}
} else {