renderer: untransform textures matching display transform

fixes #6754

This will break if the client uses a transform that is not equal to the display, reverting to old behavior. Combining transforms is left as a todo for the future.
This commit is contained in:
Vaxry
2024-07-22 13:01:55 +02:00
parent 5979ceb56b
commit 1797319a07
3 changed files with 18 additions and 8 deletions

View File

@@ -406,6 +406,9 @@ void CWLSurfaceResource::commitPendingState() {
pending.damage.clear();
pending.bufferDamage.clear();
if (current.buffer && current.buffer->texture)
current.buffer->texture->m_eTransform = wlTransformToHyprutils(current.transform);
if (current.buffer && !bufferReleased) {
current.buffer->update(accumulateCurrentBufferDamage());