mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-25 22:23:42 +08:00
[ts][player] Fixed resize mode regression introduced in 94240181.
This commit is contained in:
parent
66e4b27670
commit
f21b38904f
@ -893,7 +893,7 @@ export class SpinePlayer implements Disposable {
|
|||||||
renderer.camera.position.y = viewport.y + viewport.height / 2;
|
renderer.camera.position.y = viewport.y + viewport.height / 2;
|
||||||
|
|
||||||
// Resize the canvas.
|
// Resize the canvas.
|
||||||
renderer.resize(this.currentViewport.clip ? ResizeMode.FitClip : ResizeMode.Fit, viewport.width, viewport.height);
|
renderer.resize(this.currentViewport.clip ? ResizeMode.FitClip : ResizeMode.Expand, viewport.width, viewport.height);
|
||||||
|
|
||||||
// Clear the screen.
|
// Clear the screen.
|
||||||
const gl = this.context!.gl;
|
const gl = this.context!.gl;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user