File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -129,9 +129,9 @@ class RenderWebGL extends EventEmitter {
129
129
xrCompatible : true
130
130
} ;
131
131
return ! ! (
132
- optCanvas . getContext ( 'webgl ' , options ) ||
132
+ optCanvas . getContext ( 'webgl2 ' , options ) ||
133
133
optCanvas . getContext ( 'experimental-webgl' , options ) ||
134
- optCanvas . getContext ( 'webgl2 ' , options )
134
+ optCanvas . getContext ( 'webgl ' , options )
135
135
) ;
136
136
} catch ( e ) {
137
137
return false ;
@@ -155,8 +155,8 @@ class RenderWebGL extends EventEmitter {
155
155
// getWebGLContext = try WebGL 1.0 only
156
156
// getContext = try WebGL 2.0 and if that doesn't work, try WebGL 1.0
157
157
// getWebGLContext || getContext = try WebGL 1.0 and if that doesn't work, try WebGL 2.0
158
- return twgl . getWebGLContext ( canvas , contextAttribs ) ||
159
- twgl . getContext ( canvas , contextAttribs ) ;
158
+ return twgl . getContext ( canvas , contextAttribs ) ||
159
+ twgl . getWebGLContext ( canvas , contextAttribs ) ;
160
160
}
161
161
162
162
/**
You can’t perform that action at this time.
0 commit comments