@@ -166,13 +166,13 @@ function loadYSlice(gl, y, width, height, planes)
166
166
'vbo' : makeBuffer (
167
167
gl ,
168
168
gl . ARRAY_BUFFER ,
169
- new WebGLFloatArray ( pos_array . concat ( tc_array ) ) ) ,
169
+ new Float32Array ( pos_array . concat ( tc_array ) ) ) ,
170
170
'pos_offset' : 0 ,
171
171
'tc_offset' : ix * 8 ,
172
172
'ebo' : makeBuffer (
173
173
gl ,
174
174
gl . ELEMENT_ARRAY_BUFFER ,
175
- new WebGLUnsignedShortArray ( e_array ) ) ,
175
+ new Uint16Array ( e_array ) ) ,
176
176
'count' : e_count ,
177
177
'texture' : textures [ 'tiles' ] ,
178
178
'image' : images [ 'tiles' ] ,
@@ -210,9 +210,9 @@ function makeDrawCommandForObjectAt(gl, tile, x, y)
210
210
e_array = [ 0 , 1 , 2 , 0 , 2 , 3 ]
211
211
212
212
gl . bindBuffer ( gl . ARRAY_BUFFER , object_vbo )
213
- gl . bufferData ( gl . ARRAY_BUFFER , new WebGLFloatArray ( pos_array . concat ( tc_array ) ) , gl . STREAM_DRAW )
213
+ gl . bufferData ( gl . ARRAY_BUFFER , new Float32Array ( pos_array . concat ( tc_array ) ) , gl . STREAM_DRAW )
214
214
gl . bindBuffer ( gl . ELEMENT_ARRAY_BUFFER , object_ebo )
215
- gl . bufferData ( gl . ELEMENT_ARRAY_BUFFER , new WebGLUnsignedShortArray ( e_array ) , gl . STREAM_DRAW )
215
+ gl . bufferData ( gl . ELEMENT_ARRAY_BUFFER , new Uint16Array ( e_array ) , gl . STREAM_DRAW )
216
216
217
217
if ( ! images [ 'tiles' ] )
218
218
{
0 commit comments