File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 77
88goog . provide ( 'shaka.ui.VRManager' ) ;
99
10- goog . require ( 'shaka.device.DeviceFactory' ) ;
11- goog . require ( 'shaka.device.IDevice' ) ;
1210goog . require ( 'shaka.log' ) ;
1311goog . require ( 'shaka.ui.VRWebgl' ) ;
1412goog . require ( 'shaka.util.Dom' ) ;
@@ -392,16 +390,7 @@ shaka.ui.VRManager = class extends shaka.util.FakeEventTarget {
392390 * @private
393391 */
394392 getGL_ ( canvas ) {
395- if ( ! canvas ) {
396- return null ;
397- }
398- // The user interface is not intended for devices that are controlled with
399- // a remote control, and WebGL may run slowly on these devices.
400- const device = shaka . device . DeviceFactory . getDevice ( ) ;
401- const deviceType = device . getDeviceType ( ) ;
402- if ( deviceType == shaka . device . IDevice . DeviceType . TV ||
403- deviceType == shaka . device . IDevice . DeviceType . CONSOLE ||
404- deviceType == shaka . device . IDevice . DeviceType . CAST ) {
393+ if ( ! canvas || ! window . WebGLRenderingContext ) {
405394 return null ;
406395 }
407396 const webglContexts = [
You can’t perform that action at this time.
0 commit comments