Commit 630d98c 1 parent ac70fa7 commit 630d98c Copy full SHA for 630d98c
File tree 2 files changed +0
-18
lines changed
2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -1060,13 +1060,6 @@ class Map extends Camera {
1060
1060
return ;
1061
1061
}
1062
1062
1063
- const MAX_RENDERBUFFER_SIZE = gl . getParameter ( gl . MAX_RENDERBUFFER_SIZE ) / 2 ;
1064
- if ( this . _canvas . width > MAX_RENDERBUFFER_SIZE ||
1065
- this . _canvas . height > MAX_RENDERBUFFER_SIZE ) {
1066
- throw new Error ( `Map canvas (${ this . _canvas . width } x${ this . _canvas . height } ) ` +
1067
- `is larger than half of gl.MAX_RENDERBUFFER_SIZE (${ MAX_RENDERBUFFER_SIZE } )` ) ;
1068
- }
1069
-
1070
1063
this . painter = new Painter ( gl , this . transform ) ;
1071
1064
}
1072
1065
Original file line number Diff line number Diff line change @@ -62,17 +62,6 @@ test('Map', (t) => {
62
62
container : 'anElementIdWhichDoesNotExistInTheDocument'
63
63
} ) ;
64
64
} , new Error ( "Container 'anElementIdWhichDoesNotExistInTheDocument' not found" ) , 'throws on invalid map container id' ) ;
65
-
66
- const largeContainer = window . document . createElement ( 'div' ) ;
67
- largeContainer . offsetWidth = 10000 ;
68
- largeContainer . offsetHeight = 10000 ;
69
- t . throws ( ( ) => {
70
- new Map ( {
71
- container : largeContainer
72
- } ) ;
73
- } , / M a p c a n v a s \( \d + x \d + \) i s l a r g e r t h a n h a l f o f g l .M A X _ R E N D E R B U F F E R _ S I Z E \( \d + \) / ,
74
- 'throws on then map canvas is larger than allowed by gl.MAX_RENDERBUFFER_SIZE' ) ;
75
-
76
65
t . end ( ) ;
77
66
} ) ;
78
67
You can’t perform that action at this time.
0 commit comments