We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75ab330 commit 15a7f4dCopy full SHA for 15a7f4d
src/Renderer.ts
@@ -489,7 +489,7 @@ export default class Renderer {
489
// Used for mapping drawn sprites back to their indices in a list.
490
// By looking at the color of a given pixel, we can tell which sprite is
491
// the topmost one drawn on that pixel.
492
- if (drawMode === ShaderManager.DrawModes.SPRITE_ID && spriteColorId) {
+ if (drawMode === ShaderManager.DrawModes.SPRITE_ID && typeof spriteColorId === "number") {
493
this.gl.uniform3fv(shader.uniforms.u_spriteId, idToColor(spriteColorId));
494
}
495
0 commit comments