wayland/linuxdrmsyncobjv1: don't emit a protocol error for unmapping a surface

This commit is contained in:
Xaver Hugl 2024-05-27 15:14:27 +02:00
parent ae376766ef
commit 5e122cb6c0

View file

@ -157,7 +157,7 @@ void LinuxDrmSyncObjSurfaceV1::wp_linux_drm_syncobj_surface_v1_destroy(Resource
bool LinuxDrmSyncObjSurfaceV1::maybeEmitProtocolErrors()
{
const auto priv = SurfaceInterfacePrivate::get(m_surface);
if (!priv->pending->bufferIsSet && !priv->pending->acquirePoint.timeline && !priv->pending->releasePoint) {
if ((!priv->pending->bufferIsSet || !priv->pending->buffer) && !priv->pending->acquirePoint.timeline && !priv->pending->releasePoint) {
return false;
}
if (!priv->pending->acquirePoint.timeline) {