improved error message when forgetting to call system apply function … (#13975)
fixes #13944 I literally just added `Did you forget to call SystemState::apply?` to the error message. I tested it with the code snipped from the Issue and yeah it works
This commit is contained in:
parent
82fd3df719
commit
2d30ae437c
@ -312,7 +312,7 @@ impl RawCommandQueue {
|
||||
impl Drop for CommandQueue {
|
||||
fn drop(&mut self) {
|
||||
if !self.bytes.is_empty() {
|
||||
warn!("CommandQueue has un-applied commands being dropped.");
|
||||
warn!("CommandQueue has un-applied commands being dropped. Did you forget to call SystemState::apply?");
|
||||
}
|
||||
// SAFETY: A reference is always a valid pointer
|
||||
unsafe { self.get_raw().apply_or_drop_queued(None) };
|
||||
|
Loading…
Reference in New Issue
Block a user