wayland/linuxdrmsyncobjv1: don't emit a protocol error for unmapping a surface
This commit is contained in:
parent
ae376766ef
commit
5e122cb6c0
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue