Skip to content
Open
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
cfb72c7
refactor(rhi-webgl): extract isOffscreenCanvas helper
luo2430 Jun 17, 2026
c7d793a
feat(rhi-webgl): add WebGLEngine auto-resize support via ResizeObserver
luo2430 Jun 18, 2026
b794d54
chore(vitest): disable screenshotFailures to avoid taking blank scree…
luo2430 Jun 18, 2026
9fc8dce
docs(rhi-webgl): update isOffscreenCanvas and ResizeObserver.observe …
luo2430 Jun 18, 2026
a15b539
fix(rhi-webgl): defer auto-resize to prevent white flash
luo2430 Jun 22, 2026
7c5c1c1
refactor(rhi-webgl): move field declarations before methods
GuoLei1990 Jul 1, 2026
f7ad066
refactor(rhi-webgl): rework canvas resolution API, follow display siz…
GuoLei1990 Jul 1, 2026
25b7462
Merge branch 'dev/2.0' into pr3037-head
GuoLei1990 Jul 1, 2026
ada33cd
test(rhi-webgl): cover deprecated enableAutoResize/disableAutoResize …
GuoLei1990 Jul 1, 2026
a4c593b
test(e2e): rely on default auto-resolution instead of explicit setRes…
GuoLei1990 Jul 2, 2026
7a74b11
docs(core): drop redundant Read-only note from width/height remarks
GuoLei1990 Jul 2, 2026
4a23dd9
docs(core): drop migration pointer from width/height docs
GuoLei1990 Jul 2, 2026
83dd8c7
docs: consolidate resize comments; validate auto-resolution scale
GuoLei1990 Jul 2, 2026
b2fa6fe
docs: fix comment defects introduced by the comment audit itself
GuoLei1990 Jul 2, 2026
6a6b15b
docs(core): describe Canvas from the user's perspective
GuoLei1990 Jul 2, 2026
f7b5be9
docs: rewrite comments from the reader's perspective
GuoLei1990 Jul 2, 2026
90d5ce0
docs(core): align @throws format with the repo's existing convention
GuoLei1990 Jul 4, 2026
4350dd8
docs(core): drop self-evident comments on internal size methods
GuoLei1990 Jul 4, 2026
2fb80a8
docs(core): drop the _exitAutoResize note
GuoLei1990 Jul 4, 2026
7a5813f
docs(core): frame width/height as canvas resolution components
GuoLei1990 Jul 4, 2026
ddbe7a6
refactor(rhi-webgl): make isOffscreenCanvas internal
GuoLei1990 Jul 4, 2026
edadc3f
docs: drop unfounded warn-once TODO and trailing periods on line comm…
GuoLei1990 Jul 4, 2026
4c0db61
docs(rhi-webgl): drop self-evident comment on the resize observer cal…
GuoLei1990 Jul 4, 2026
8bfff96
docs(rhi-webgl): tighten _pumpPendingResize comments
GuoLei1990 Jul 4, 2026
daed532
docs(rhi-webgl): drop 0x0 guard comment
GuoLei1990 Jul 4, 2026
f557791
docs(rhi-webgl): note the compat constraint in the devicePixelContent…
GuoLei1990 Jul 4, 2026
e7a157e
docs(rhi-webgl): reframe the devicePixelContentBoxSize TODO as an add…
GuoLei1990 Jul 4, 2026
a139505
feat(rhi-webgl): use devicePixelContentBoxSize for exact auto-resize …
GuoLei1990 Jul 4, 2026
d0eb8e8
refactor(rhi-webgl): move _isOffscreenCanvas below the public members
GuoLei1990 Jul 4, 2026
49c1869
docs(rhi-webgl): drop the pending-device-pixel field comment
GuoLei1990 Jul 4, 2026
ba05525
fix(rhi-webgl): let the first auto-resize use exact device pixels
GuoLei1990 Jul 4, 2026
9df47a6
refactor(rhi-webgl): drop engine-level enableAutoResize/disableAutoRe…
GuoLei1990 Jul 4, 2026
5aacc85
refactor(rhi-webgl): move _releaseCanvas to the bottom, drop its comment
GuoLei1990 Jul 4, 2026
4889464
refactor: pump pending canvas resize in base Engine.update
GuoLei1990 Jul 4, 2026
24df15f
docs(core): drop the pump comment in Engine.update
GuoLei1990 Jul 4, 2026
f1dc487
docs(rhi-webgl): simplify the canvas getter doc
GuoLei1990 Jul 4, 2026
724dd3c
refactor(rhi-webgl): drop the autoResize create option
GuoLei1990 Jul 4, 2026
90a8755
chore(docs): migrate canvas resizing APIs and update guides
luo2430 Jul 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions e2e/case/.initPostProcessEnv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ export async function initPostProcessEnv(
shaderCompiler?: ShaderCompiler
) {
WebGLEngine.create({ canvas: "canvas", shaderCompiler }).then((engine) => {
engine.canvas.resizeByClientSize();

const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();

Expand Down
2 changes: 1 addition & 1 deletion e2e/case/animator-additive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { initScreenshot, updateForE2E } from "./.mockForE2E";
Logger.enable();

WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
engine.canvas.resizeByClientSize(2);
engine.canvas.setAutoResolution(2);
const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();

Expand Down
1 change: 0 additions & 1 deletion e2e/case/animator-blendShape-quantization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ WebGLEngine.create({
canvas: "canvas",
glTF: { meshOpt: { workerCount: 0 } }
}).then(async (engine) => {
engine.canvas.resizeByClientSize();
const scene = engine.sceneManager.activeScene;
const rootNode = scene.createRootEntity();
scene.ambientLight.diffuseSolidColor.set(1, 1, 1, 1);
Expand Down
2 changes: 1 addition & 1 deletion e2e/case/animator-blendShape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { initScreenshot, updateForE2E } from "./.mockForE2E";

Logger.enable();
WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
engine.canvas.resizeByClientSize(2);
engine.canvas.setAutoResolution(2);
const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();

Expand Down
2 changes: 1 addition & 1 deletion e2e/case/animator-crossfade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { initScreenshot, updateForE2E } from "./.mockForE2E";

Logger.enable();
WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
engine.canvas.resizeByClientSize(2);
engine.canvas.setAutoResolution(2);
const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();

Expand Down
2 changes: 1 addition & 1 deletion e2e/case/animator-customAnimationClip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { initScreenshot, updateForE2E } from "./.mockForE2E";

Logger.enable();
WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
engine.canvas.resizeByClientSize(2);
engine.canvas.setAutoResolution(2);
const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();

Expand Down
2 changes: 1 addition & 1 deletion e2e/case/animator-customBlendShape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { initScreenshot, updateForE2E } from "./.mockForE2E";

Logger.enable();
WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
engine.canvas.resizeByClientSize(2);
engine.canvas.setAutoResolution(2);
const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();

Expand Down
2 changes: 1 addition & 1 deletion e2e/case/animator-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
import { initScreenshot, updateForE2E } from "./.mockForE2E";

WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
engine.canvas.resizeByClientSize(2);
engine.canvas.setAutoResolution(2);
const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();
// camera
Expand Down
3 changes: 0 additions & 3 deletions e2e/case/animator-multiSubMeshBlendShape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
DirectLight,
Logger,
SkinnedMeshRenderer,
SystemInfo,
Vector3,
WebGLEngine,
GLTFResource,
Expand All @@ -23,8 +22,6 @@ import { initScreenshot, updateForE2E } from "./.mockForE2E";

Logger.enable();
WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
engine.canvas.width = window.innerWidth * SystemInfo.devicePixelRatio;
engine.canvas.height = window.innerHeight * SystemInfo.devicePixelRatio;
const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();

Expand Down
2 changes: 1 addition & 1 deletion e2e/case/animator-play-backwards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { initScreenshot, updateForE2E } from "./.mockForE2E";

Logger.enable();
WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
engine.canvas.resizeByClientSize(2);
engine.canvas.setAutoResolution(2);
const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();

Expand Down
2 changes: 1 addition & 1 deletion e2e/case/animator-play-beforeActive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { initScreenshot, updateForE2E } from "./.mockForE2E";

Logger.enable();
WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
engine.canvas.resizeByClientSize(2);
engine.canvas.setAutoResolution(2);
const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();

Expand Down
2 changes: 1 addition & 1 deletion e2e/case/animator-play.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { initScreenshot, updateForE2E } from "./.mockForE2E";

Logger.enable();
WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
engine.canvas.resizeByClientSize(2);
engine.canvas.setAutoResolution(2);
const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();

Expand Down
2 changes: 1 addition & 1 deletion e2e/case/animator-reuse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { initScreenshot, updateForE2E } from "./.mockForE2E";

Logger.enable();
WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
engine.canvas.resizeByClientSize(2);
engine.canvas.setAutoResolution(2);
const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();

Expand Down
3 changes: 0 additions & 3 deletions e2e/case/animator-stateMachine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,13 @@ import {
Color,
DirectLight,
GLTFResource,
SystemInfo,
TextRenderer,
Vector3,
WebGLEngine
} from "@galacean/engine";
import { initScreenshot, updateForE2E } from "./.mockForE2E";

WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
engine.canvas.width = window.innerWidth * SystemInfo.devicePixelRatio;
engine.canvas.height = window.innerHeight * SystemInfo.devicePixelRatio;
const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();

Expand Down
2 changes: 1 addition & 1 deletion e2e/case/animator-stateMachineScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { initScreenshot, updateForE2E } from "./.mockForE2E";

Logger.enable();
WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
engine.canvas.resizeByClientSize(2);
engine.canvas.setAutoResolution(2);
const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();

Expand Down
2 changes: 1 addition & 1 deletion e2e/case/camera-fxaa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ initPostProcessEnv((camera: Camera) => {
const postProcess = globalPostProcessEntity.addComponent(PostProcess);

const bloomEffect = postProcess.addEffect(BloomEffect);
bloomEffect.threshold.value = 0.7874122893956174
bloomEffect.threshold.value = 0.7874122893956174;
bloomEffect.intensity.value = 1;

const tonemappingEffect = postProcess.addEffect(TonemappingEffect);
Expand Down
2 changes: 1 addition & 1 deletion e2e/case/camera-opaque-texture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ WebGLEngine.create({ canvas: "canvas", shaderCompiler: new ShaderCompiler() }).t
}
}
`);
engine.canvas.resizeByClientSize(2);
engine.canvas.setAutoResolution(2);
const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();

Expand Down
2 changes: 1 addition & 1 deletion e2e/case/camera-ssao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ WebGLEngine.create({
shaderCompiler: new ShaderCompiler(),
graphicDeviceOptions: { webGLMode: WebGLMode.WebGL1 }
}).then((engine) => {
engine.canvas.resizeByClientSize(2);
engine.canvas.setAutoResolution(2);

const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();
Expand Down
2 changes: 1 addition & 1 deletion e2e/case/canvas-transparency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { initScreenshot, updateForE2E } from "./.mockForE2E";

Logger.enable();
WebGLEngine.create({ canvas: "canvas", graphicDeviceOptions: { alpha: false } }).then((engine) => {
engine.canvas.resizeByClientSize(2);
engine.canvas.setAutoResolution(2);

engine.resourceManager
.load([
Expand Down
3 changes: 0 additions & 3 deletions e2e/case/gltf-blendshape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
DirectLight,
Logger,
SkinnedMeshRenderer,
SystemInfo,
Vector3,
WebGLEngine,
GLTFResource
Expand All @@ -19,8 +18,6 @@ import { initScreenshot, updateForE2E } from "./.mockForE2E";

Logger.enable();
WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
engine.canvas.width = window.innerWidth * SystemInfo.devicePixelRatio;
engine.canvas.height = window.innerHeight * SystemInfo.devicePixelRatio;
const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();

Expand Down
2 changes: 1 addition & 1 deletion e2e/case/gltf-meshopt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { initScreenshot, updateForE2E } from "./.mockForE2E";

Logger.enable();
WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
engine.canvas.resizeByClientSize(2);
engine.canvas.setAutoResolution(2);
const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();

Expand Down
2 changes: 1 addition & 1 deletion e2e/case/gpu-instancing-auto-batch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { initScreenshot, updateForE2E } from "./.mockForE2E";

Logger.enable();
WebGLEngine.create({ canvas: "canvas" }).then(async (engine) => {
engine.canvas.resizeByClientSize(2);
engine.canvas.setAutoResolution(2);

const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity("Root");
Expand Down
2 changes: 1 addition & 1 deletion e2e/case/gpu-instancing-custom-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const customInstanceShaderSource = `Shader "CustomInstanceShader" {

WebGLEngine.create({ canvas: "canvas", shaderCompiler }).then((engine) => {
Shader.create(customInstanceShaderSource);
engine.canvas.resizeByClientSize(2);
engine.canvas.setAutoResolution(2);

const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity("Root");
Expand Down
2 changes: 1 addition & 1 deletion e2e/case/material-LUT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const shaderSource = `Shader "LUT-test" {
// Create engine
WebGLEngine.create({ canvas: "canvas", shaderCompiler })
.then((engine) => {
engine.canvas.resizeByClientSize(2);
engine.canvas.setAutoResolution(2);

const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();
Expand Down
2 changes: 0 additions & 2 deletions e2e/case/material-blendMode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import { initScreenshot, updateForE2E } from "./.mockForE2E";

// Create engine
WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
engine.canvas.resizeByClientSize();

const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();

Expand Down
2 changes: 0 additions & 2 deletions e2e/case/material-blinn-phong.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import { initScreenshot, updateForE2E } from "./.mockForE2E";

// Create engine
WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
engine.canvas.resizeByClientSize();

const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();

Expand Down
2 changes: 0 additions & 2 deletions e2e/case/material-pbr-clearcoat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ Logger.enable();

// Create engine
WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
engine.canvas.resizeByClientSize();

const scene = engine.sceneManager.activeScene;
const { background } = scene;
const rootEntity = scene.createRootEntity();
Expand Down
2 changes: 0 additions & 2 deletions e2e/case/material-pbr-specular.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ Logger.enable();

// Create engine
WebGLEngine.create({ canvas: "canvas", shaderCompiler: new ShaderCompiler() }).then((engine) => {
engine.canvas.resizeByClientSize();

const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();

Expand Down
2 changes: 0 additions & 2 deletions e2e/case/material-pbr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ import { initScreenshot, updateForE2E } from "./.mockForE2E";

// Create engine
WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
engine.canvas.resizeByClientSize();

const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();

Expand Down
2 changes: 0 additions & 2 deletions e2e/case/material-shader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ function createPlaneMesh(engine: WebGLEngine) {

Logger.enable();
WebGLEngine.create({ canvas: "canvas", shaderCompiler }).then((engine) => {
engine.canvas.resizeByClientSize();

const shaderMap = {
normal: Shader.create(normalShaderSource)
};
Expand Down
1 change: 0 additions & 1 deletion e2e/case/material-shaderReplacement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ async function main() {

// Create engine
const engine = await WebGLEngine.create({ canvas: "canvas", shaderCompiler: new ShaderCompiler() });
engine.canvas.resizeByClientSize();

initShader();

Expand Down
2 changes: 1 addition & 1 deletion e2e/case/material-unlit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Logger.enable();

// Create engine
WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
engine.canvas.resizeByClientSize(2);
engine.canvas.setAutoResolution(2);

const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();
Expand Down
2 changes: 0 additions & 2 deletions e2e/case/material-white-furnace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import {
import { initScreenshot, updateForE2E } from "./.mockForE2E";

WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
engine.canvas.resizeByClientSize();

const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();

Expand Down
2 changes: 0 additions & 2 deletions e2e/case/multi-camera-no-clear.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ WebGLEngine.create({
antialias: false
}
}).then((engine) => {
engine.canvas.resizeByClientSize();

initFirstScene(engine);
engine.run();
});
Expand Down
2 changes: 0 additions & 2 deletions e2e/case/multi-scene-clear.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import { initScreenshot, updateForE2E } from "./.mockForE2E";

Logger.enable();
WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
engine.canvas.resizeByClientSize();

const firstCamera = initFirstScene(engine);
const secondCamera = initSecondScene(engine);

Expand Down
2 changes: 0 additions & 2 deletions e2e/case/multi-scene-no-clear.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ WebGLEngine.create({
webGLMode: WebGLMode.WebGL2
}
}).then((engine) => {
engine.canvas.resizeByClientSize();

const firstCamera = initFirstScene(engine);
const secondCamera = initSecondScene(engine);

Expand Down
2 changes: 0 additions & 2 deletions e2e/case/particleRenderer-burst-cycles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ import { initScreenshot, updateForE2E } from "./.mockForE2E";
WebGLEngine.create({
canvas: "canvas"
}).then((engine) => {
engine.canvas.resizeByClientSize();

const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();
scene.background.solidColor = new Color(0, 0, 0, 1);
Expand Down
2 changes: 0 additions & 2 deletions e2e/case/particleRenderer-customShader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ const customParticleShaderSource = `Shader "Test/ParticleCustom" {

Logger.enable();
WebGLEngine.create({ canvas: "canvas", shaderCompiler }).then((engine) => {
engine.canvas.resizeByClientSize();

const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();
scene.background.solidColor = new Color(0.05, 0.05, 0.05, 1);
Expand Down
1 change: 0 additions & 1 deletion e2e/case/particleRenderer-dream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ WebGLEngine.create({
canvas: "canvas"
}).then((engine) => {
Logger.enable();
engine.canvas.resizeByClientSize();

const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();
Expand Down
1 change: 0 additions & 1 deletion e2e/case/particleRenderer-emissive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ WebGLEngine.create({
graphicDeviceOptions: { webGLMode: WebGLMode.Auto }
}).then((engine) => {
Logger.enable();
engine.canvas.resizeByClientSize();

const scene = engine.sceneManager.activeScene;
const rootEntity = scene.createRootEntity();
Expand Down
Loading
Loading