Skip to content

Commit

Permalink
chore(test): remove webGPUContext.super
Browse files Browse the repository at this point in the history
  • Loading branch information
lslzl3000 committed Jun 9, 2024
1 parent 2e54053 commit c3d32d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/base/EngineInit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { Engine3D, webGPUContext } from '@orillusion/core';

await test('Init', async () => {
await Engine3D.init();
let width = Math.floor(webGPUContext.canvas.clientWidth * webGPUContext.pixelRatio * webGPUContext.super)
let height = Math.floor(webGPUContext.canvas.clientHeight * webGPUContext.pixelRatio * webGPUContext.super)
let width = Math.floor(webGPUContext.canvas.clientWidth * webGPUContext.pixelRatio)
let height = Math.floor(webGPUContext.canvas.clientHeight * webGPUContext.pixelRatio)
let aspect = width / height;

expect(Engine3D.aspect).toEqual(aspect)
Expand Down

0 comments on commit c3d32d0

Please sign in to comment.