@next2d/renderer 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next2d/renderer",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Next2D Renderer Package",
5
5
  "author": "Toshiyuki Ienaga<ienaga@next2d.app> (https://github.com/ienaga/)",
6
6
  "license": "MIT",
@@ -24,9 +24,9 @@
24
24
  "url": "git+https://github.com/Next2D/Player.git"
25
25
  },
26
26
  "dependencies": {
27
- "@next2d/webgl": "3.0.1",
28
- "@next2d/webgpu": "3.0.1",
29
- "@next2d/cache": "3.0.1",
30
- "@next2d/texture-packer": "3.0.1"
27
+ "@next2d/webgl": "3.0.2",
28
+ "@next2d/webgpu": "3.0.2",
29
+ "@next2d/cache": "3.0.2",
30
+ "@next2d/texture-packer": "3.0.2"
31
31
  }
32
32
  }
@@ -19,6 +19,13 @@ let $color = -1;
19
19
  * @protected
20
20
  */
21
21
  export const execute = (render_queue, image_bitmaps) => {
22
+ // リサイズ完了処理を描画開始前に実行
23
+ // WebGPUではcanvas.width/height設定がコンテキストをunconfigureするため、
24
+ // beginFrame()→ensureMainTexture()でconfigure()→getCurrentTexture()する前に
25
+ // canvas.width/heightを確定させる必要がある
26
+ if ($isResize()) {
27
+ $resizeComplete();
28
+ }
22
29
  // reset transfer bounds
23
30
  $context.clearTransferBounds();
24
31
  let index = 0;
@@ -63,8 +70,5 @@ export const execute = (render_queue, image_bitmaps) => {
63
70
  }
64
71
  }
65
72
  $context.drawArraysInstanced();
66
- if ($isResize()) {
67
- $resizeComplete();
68
- }
69
73
  $context.transferMainCanvas();
70
74
  };