@@ -2361,16 +2361,16 @@ var LibraryJSEvents = {
2361
2361
{ { { makeSetValue ( 'a ', C_STRUCTS . EmscriptenWebGLContextAttributes . antialias , 't . antialias ', 'i32 ') } } } ;
2362
2362
{ { { makeSetValue ( 'a ', C_STRUCTS . EmscriptenWebGLContextAttributes . premultipliedAlpha , 't . premultipliedAlpha ', 'i32 ') } } } ;
2363
2363
{ { { makeSetValue ( 'a ', C_STRUCTS . EmscriptenWebGLContextAttributes . preserveDrawingBuffer , 't . preserveDrawingBuffer ', 'i32 ') } } } ;
2364
- var power = __emscripten_webgl_power_preferences . indexOf ( t [ 'powerPreference '] ) ;
2364
+ var power = t [ ' powerPreference ' ] && __emscripten_webgl_power_preferences . indexOf ( t [ 'powerPreference '] ) ;
2365
2365
{ { { makeSetValue ( 'a ', C_STRUCTS . EmscriptenWebGLContextAttributes . powerPreference , 'power ', 'i32 ') } } } ;
2366
2366
{ { { makeSetValue ( 'a ', C_STRUCTS . EmscriptenWebGLContextAttributes . failIfMajorPerformanceCaveat , 't . failIfMajorPerformanceCaveat ', 'i32 ') } } } ;
2367
2367
{ { { makeSetValue ( 'a ', C_STRUCTS . EmscriptenWebGLContextAttributes . majorVersion , 'c . version ', 'i32 ') } } } ;
2368
2368
{ { { makeSetValue ( 'a ', C_STRUCTS . EmscriptenWebGLContextAttributes . minorVersion , 0 , 'i32 ') } } } ;
2369
2369
#if GL_SUPPORT_AUTOMATIC_ENABLE_EXTENSIONS
2370
- { { { makeSetValue ( 'a ', C_STRUCTS . EmscriptenWebGLContextAttributes . enableExtensionsByDefault , 'c . attributes [ " enableExtensionsByDefault " ] ', 'i32 ') } } } ;
2370
+ { { { makeSetValue ( 'a ', C_STRUCTS . EmscriptenWebGLContextAttributes . enableExtensionsByDefault , 'c . attributes . enableExtensionsByDefault ', 'i32 ') } } } ;
2371
2371
#endif
2372
2372
#if GL_SUPPORT_EXPLICIT_SWAP_CONTROL
2373
- { { { makeSetValue ( 'a ', C_STRUCTS . EmscriptenWebGLContextAttributes . explicitSwapControl , 'c . attributes [ " explicitSwapControl " ] ', 'i32 ') } } } ;
2373
+ { { { makeSetValue ( 'a ', C_STRUCTS . EmscriptenWebGLContextAttributes . explicitSwapControl , 'c . attributes . explicitSwapControl ', 'i32 ') } } } ;
2374
2374
#endif
2375
2375
return { { { cDefine ( 'EMSCRIPTEN_RESULT_SUCCESS ') } } } ;
2376
2376
} ,
0 commit comments