fix: reset canvas transformation to not accumulate error on non-zero dPR
This commit is contained in:
parent
0749d2c1f3
commit
add75b8c93
@ -207,6 +207,7 @@ export const renderScene = (
|
|||||||
|
|
||||||
const context = canvas.getContext("2d")!;
|
const context = canvas.getContext("2d")!;
|
||||||
|
|
||||||
|
context.resetTransform();
|
||||||
context.scale(scale, scale);
|
context.scale(scale, scale);
|
||||||
|
|
||||||
// When doing calculations based on canvas width we should used normalized one
|
// When doing calculations based on canvas width we should used normalized one
|
||||||
|
Loading…
x
Reference in New Issue
Block a user