Skip to content
Commit f72c2196 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Calculate correct surface-to-buffer matrix with only upscaled viewport

Currently, if a wp_viewport upscales the surface but doesn't set the
source rectangle, the surface-to-buffer matrix will be calculated
incorrectly.

If the source rect is not set, we need to calculate the source size
based on the buffer size and compare it with the destination size. If
the two are not the same, add a scale transform.

BUG: 445346
parent 357b5c19
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment