Browse Source

Fix webGPU detection

David Catuhe 4 years ago
parent
commit
4c98b6cf57
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Playground/src/components/commandBarComponent.tsx

+ 1 - 1
Playground/src/components/commandBarComponent.tsx

@@ -88,7 +88,7 @@ export class CommandBarComponent extends React.Component<ICommandBarComponentPro
             }
         ];
 
-        if (WebGPUEngine.IsSupported) {
+        if (!!navigator.gpu) {
             engineOptions.splice(0,0, {
                 label: "WebGPU",
                 storeKey: "engineVersion",