Webgl points renderer / throw if shader compilation fails
This should only happen if providing handcrafted shaders to the renderer.
This commit is contained in:
@@ -132,6 +132,10 @@ class WebGLPointsLayerRenderer extends WebGLLayerRenderer {
|
|||||||
options.vertexShader
|
options.vertexShader
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (this.getShaderCompileErrors()) {
|
||||||
|
throw new Error(this.getShaderCompileErrors());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
* @private
|
* @private
|
||||||
|
|||||||
Reference in New Issue
Block a user