[fix] Log if we can't allocate texture memory
MODIFY
src/util/mockVGL.js
src/util/mockVGL.js
@@ -85,6 +85,7 @@ module.exports.mockWebglRenderer = function mockWebglRenderer(supported) {
enable: noop('enable'),
enableVertexAttribArray: noop('enableVertexAttribArray'),
finish: noop('finish'),
+ getError: noop('getError'),
getExtension: incID('getExtension'),
getParameter: function (key) {
count('getParameter');

MODIFY
src/webgl/quadFeature.js
src/webgl/quadFeature.js
@@ -361,7 +361,9 @@ var webgl_quadFeature = function (arg) {
return;
}
quad.texture.bind(renderState);
-
+ if (context.getError() === context.OUT_OF_MEMORY) {
+ console.log('Insufficient GPU memory for texture');
+ }
if (quad.opacity !== opacity) {
opacity = quad.opacity;
context.uniform1fv(renderState.m_material.shaderProgram()

[fix] Log if we can't allocate texture memory