fix: reset canvas transformation to not accumulate error on non-zero dPR

This commit is contained in:
dwelle 2021-07-14 11:01:34 +02:00
parent 0749d2c1f3
commit add75b8c93

View File

@ -207,6 +207,7 @@ export const renderScene = (
const context = canvas.getContext("2d")!;
context.resetTransform();
context.scale(scale, scale);
// When doing calculations based on canvas width we should used normalized one