gtk/testsuite/gsk/compare/texture-scale-nearest-noninteger-scaled-nogl.node
Benjamin Otte 3080e2974d gpu: ceil() offscreen size before generating offscreen
The goal is to generate an offscreen at 1x scale.
When not ceil()ing the numbers the offscreen code would do it *and*
adjust the scale accordingly, so we'd end up with something like a
1.01x scale.

And that would cause the code to reenter this codepath with the goal to
generate an offscreen at 1x scale.
And indeed, this would lead to infinite recursion.

Tests included.

Fixes #6553
2024-04-09 17:39:32 +02:00

15 lines
300 B
Plaintext

color {
bounds: 0 0 3 2;
color: rgb(0,0,0);
}
transform {
transform: scale(2);
child: texture-scale {
bounds: 0 0 1.5 1;
filter: nearest;
texture: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVQImWNoYGAAAAGEAIGs40g+\
AAAAAElFTkSuQmCC\
");
}
}