remove device validity checks from create_{texture,buffer}_from_hal

those resources have been created already, we don't need to make sure the device is valid
This commit is contained in:
teoxoy 2024-06-19 11:04:36 +02:00 committed by Teodor Tanasoaia
parent 1904822084
commit 3e44a98088

View File

@ -614,9 +614,6 @@ impl Global {
Ok(device) => device,
Err(_) => break 'error DeviceError::Invalid.into(),
};
if !device.is_valid() {
break 'error DeviceError::Lost.into();
}
// NB: Any change done through the raw texture handle will not be
// recorded in the replay
@ -689,9 +686,6 @@ impl Global {
Ok(device) => device,
Err(_) => break 'error DeviceError::Invalid.into(),
};
if !device.is_valid() {
break 'error DeviceError::Lost.into();
}
// NB: Any change done through the raw buffer handle will not be
// recorded in the replay