Webgl / remove handling of element_index_uint extension
From now on we will assume this extension is always enabled. An error message have been added in the unlikely scenario of a lack of support.
This commit is contained in:
@@ -2,7 +2,6 @@ import WebGLArrayBuffer, {getArrayClassForType} from '../../../../src/ol/webgl/B
|
||||
import {
|
||||
ARRAY_BUFFER,
|
||||
ELEMENT_ARRAY_BUFFER,
|
||||
EXTENSIONS as WEBGL_EXTENSIONS,
|
||||
STATIC_DRAW,
|
||||
STREAM_DRAW
|
||||
} from '../../../../src/ol/webgl.js';
|
||||
@@ -37,11 +36,6 @@ describe('ol.webgl.Buffer', function() {
|
||||
expect(getArrayClassForType(ARRAY_BUFFER)).to.be(Float32Array);
|
||||
expect(getArrayClassForType(ELEMENT_ARRAY_BUFFER)).to.be(Uint32Array);
|
||||
});
|
||||
|
||||
it('returns the correct typed array constructor (without OES uint extension)', function() {
|
||||
WEBGL_EXTENSIONS.length = 0;
|
||||
expect(getArrayClassForType(ELEMENT_ARRAY_BUFFER)).to.be(Uint16Array);
|
||||
});
|
||||
});
|
||||
|
||||
describe('populate methods', function() {
|
||||
|
||||
Reference in New Issue
Block a user