gbm: Do not unpack drm-rs errors on conversion

This commit is contained in:
Victor Brekenfeld 2020-05-03 18:10:33 +02:00
parent a0c65114fb
commit 25f2610ea6
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ where
_ => false, _ => false,
} => } =>
{ {
SwapBuffersError::TemporaryFailure(Box::new(x)) SwapBuffersError::TemporaryFailure(Box::new(Error::<E>::FramebufferCreationFailed(x)))
} }
Error::Underlying(x) => x.into(), Error::Underlying(x) => x.into(),
x => SwapBuffersError::ContextLost(Box::new(x)), x => SwapBuffersError::ContextLost(Box::new(x)),