mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
throw error if MAX_TEXTURE_IMAGE_UNITS is a bad value
This commit is contained in:
parent
3cdd5fd711
commit
dc03989bbe
@ -285,7 +285,6 @@
|
|||||||
console.error(`There was a WebGL problem: bad value for MAX_TEXTURE_IMAGE_UNITS (${maxTextures})`);
|
console.error(`There was a WebGL problem: bad value for MAX_TEXTURE_IMAGE_UNITS (${maxTextures})`);
|
||||||
throw(new Error(`WegGL error: bad value for gl parameter MAX_TEXTURE_IMAGE_UNITS (${maxTextures}). This could happen
|
throw(new Error(`WegGL error: bad value for gl parameter MAX_TEXTURE_IMAGE_UNITS (${maxTextures}). This could happen
|
||||||
if too many contexts have been created and not released, or there is another problem with the graphics card.`));
|
if too many contexts have been created and not released, or there is another problem with the graphics card.`));
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let texturePositionArray = new Float32Array(maxTextures * 12); // 6 vertices (2 triangles) x 2 coordinates per vertex
|
let texturePositionArray = new Float32Array(maxTextures * 12); // 6 vertices (2 triangles) x 2 coordinates per vertex
|
||||||
|
Loading…
Reference in New Issue
Block a user