From dc03989bbe61bf62d1945f43bdac842ad126bce5 Mon Sep 17 00:00:00 2001 From: Tom Date: Fri, 19 Jan 2024 14:42:34 -0500 Subject: [PATCH] throw error if MAX_TEXTURE_IMAGE_UNITS is a bad value --- src/webgldrawer.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/webgldrawer.js b/src/webgldrawer.js index 9aaaf857..7b34c664 100644 --- a/src/webgldrawer.js +++ b/src/webgldrawer.js @@ -285,7 +285,6 @@ 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 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