File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import { useCanvasIdentifier } from "../hooks/use-canvas-identifier";
1414import { useUnityLoader } from "../hooks/use-unity-loader" ;
1515import { UnityArguments } from "../types/unity-arguments" ;
1616import { defaultCacheControl } from "../constants/default-cache-control" ;
17+ import { webglContextAttributes } from "../constants/default-webgl-context-attributes" ;
1718
1819const Unity : ForwardRefExoticComponent <
1920 UnityProps & React . RefAttributes < HTMLCanvasElement >
@@ -109,7 +110,9 @@ const Unity: ForwardRefExoticComponent<
109110 symbolsUrl : props . unityProvider . symbolsUrl ,
110111 streamingAssetsUrl : props . unityProvider . streamingAssetsUrl ,
111112 devicePixelRatio : props . devicePixelRatio ,
112- webglContextAttributes : props . unityProvider . webglContextAttributes ,
113+ webglContextAttributes :
114+ props . unityProvider . webglContextAttributes ??
115+ webglContextAttributes ,
113116 cacheControl : props . unityProvider . cacheControl ?? defaultCacheControl ,
114117 autoSyncPersistentDataPath :
115118 props . unityProvider . autoSyncPersistentDataPath ,
You can’t perform that action at this time.
0 commit comments