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:
@@ -16,12 +16,11 @@ onmessage = event => {
|
||||
const renderInstructions = new Float32Array(received.renderInstructions);
|
||||
const customAttributesCount = received.customAttributesCount || 0;
|
||||
const instructionsCount = POINT_INSTRUCTIONS_COUNT + customAttributesCount;
|
||||
const useShort = received.useShortIndices;
|
||||
|
||||
const elementsCount = renderInstructions.length / instructionsCount;
|
||||
const indicesCount = elementsCount * 6;
|
||||
const verticesCount = elementsCount * 4 * (POINT_VERTEX_STRIDE + customAttributesCount);
|
||||
const indexBuffer = useShort ? new Uint16Array(indicesCount) : new Uint32Array(indicesCount);
|
||||
const indexBuffer = new Uint32Array(indicesCount);
|
||||
const vertexBuffer = new Float32Array(verticesCount);
|
||||
|
||||
let bufferPositions = null;
|
||||
|
||||
Reference in New Issue
Block a user