core/compositor: Correctly track SHM buffer damage (#9678)

This commit is contained in:
Lee Bousfield
2025-03-22 11:13:44 -05:00
committed by GitHub
parent 4600043a49
commit 6384f4acf4
15 changed files with 103 additions and 82 deletions

View File

@@ -137,7 +137,7 @@ CDRMSyncobjSurfaceResource::~CDRMSyncobjSurfaceResource() {
}
bool CDRMSyncobjSurfaceResource::protocolError() {
if (!surface->pending.texture) {
if (!surface->pending.buffer) {
resource->error(WP_LINUX_DRM_SYNCOBJ_SURFACE_V1_ERROR_NO_BUFFER, "Missing buffer");
surface->pending.rejected = true;
return true;