@@ -2361,16 +2361,16 @@ var LibraryJSEvents = {
23612361 { { { makeSetValue ( 'a ', C_STRUCTS . EmscriptenWebGLContextAttributes . antialias , 't . antialias ', 'i32 ') } } } ;
23622362 { { { makeSetValue ( 'a ', C_STRUCTS . EmscriptenWebGLContextAttributes . premultipliedAlpha , 't . premultipliedAlpha ', 'i32 ') } } } ;
23632363 { { { 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 '] ) ;
23652365 { { { makeSetValue ( 'a ', C_STRUCTS . EmscriptenWebGLContextAttributes . powerPreference , 'power ', 'i32 ') } } } ;
23662366 { { { makeSetValue ( 'a ', C_STRUCTS . EmscriptenWebGLContextAttributes . failIfMajorPerformanceCaveat , 't . failIfMajorPerformanceCaveat ', 'i32 ') } } } ;
23672367 { { { makeSetValue ( 'a ', C_STRUCTS . EmscriptenWebGLContextAttributes . majorVersion , 'c . version ', 'i32 ') } } } ;
23682368 { { { makeSetValue ( 'a ', C_STRUCTS . EmscriptenWebGLContextAttributes . minorVersion , 0 , 'i32 ') } } } ;
23692369#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 ') } } } ;
23712371#endif
23722372#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 ') } } } ;
23742374#endif
23752375 return { { { cDefine ( 'EMSCRIPTEN_RESULT_SUCCESS ') } } } ;
23762376 } ,
0 commit comments