Return null for invalid drawableIDs
This commit is contained in:
parent
6dd3c0ed81
commit
68600e794d
@ -672,7 +672,7 @@ class RenderWebGL extends EventEmitter {
|
||||
*/
|
||||
extractDrawable (drawableID, x, y) {
|
||||
const drawable = this._allDrawables[drawableID];
|
||||
if (!drawable) return;
|
||||
if (!drawable) return null;
|
||||
|
||||
const gl = this._gl;
|
||||
twgl.bindFramebufferInfo(gl, this._queryBufferInfo);
|
||||
|
Loading…
x
Reference in New Issue
Block a user