From 98b3bcc9d4bad69b37d9f09fde4319067719d297 Mon Sep 17 00:00:00 2001 From: billsonnn Date: Sat, 23 Mar 2024 21:20:27 -0400 Subject: [PATCH] Prefer WebGL over WebGPU for now --- src/App.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 57f095f1..f9c7f242 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -28,13 +28,10 @@ export const App: FC<{}> = props => height, autoDensity: true, backgroundAlpha: 0, - //@ts-ignore - preference: 'webgl2' + preference: 'webgl' }); - const stage = GetStage(); - - GetTicker().add(ticker => renderer.render(stage)); + GetTicker().add(ticker => renderer.render(GetStage())); await GetConfiguration().init();