From 857b052448cc23683a47f769582ad49f963b459d Mon Sep 17 00:00:00 2001 From: "yuqi.pyq" Date: Thu, 14 Sep 2023 10:46:15 +0800 Subject: [PATCH] chore: headless-gl --- .github/workflows/test.yml | 2 ++ src/webgl/Device.ts | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index caed77c..dc73188 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,6 +25,8 @@ jobs: node-version: 16 cache: 'pnpm' + run: sudo apt-get install -y build-essential libglew-dev libglu1-mesa-dev libxi-dev pkg-config + - name: Install dependencies run: pnpm install diff --git a/src/webgl/Device.ts b/src/webgl/Device.ts index 952f0c2..9098297 100644 --- a/src/webgl/Device.ts +++ b/src/webgl/Device.ts @@ -1389,8 +1389,6 @@ export class Device_GL implements SwapChain, Device { if (this.currentDepthStencilAttachment) { if (sampleCount === -1) { sampleCount = this.currentDepthStencilAttachment.sampleCount; - width = this.currentDepthStencilAttachment.width; - height = this.currentDepthStencilAttachment.height; } else { assert(sampleCount === this.currentDepthStencilAttachment.sampleCount); assert(width === this.currentDepthStencilAttachment.width);