Closed sakitam-fdd closed 3 weeks ago
It looks like you are debugging your app with spector js and spector tries to read some data from luma.gl and does not see what it expected?
Not sure how to help you debug this.
@ibgreen It occurs when clear is called, as shown in the following code
import { Framebuffer, Renderbuffer, Texture2D, clear } from '@luma.gl/webgl';
// other render pass
clear(this.gl, {
color: true,
stencil: true,
// depth: false,
});
The error was raised when the depth parameter was not specified, and I noticed that when stencil was specified without depth, clearStencil had a value of null
if (stencil) {
clearFlags |= GL_STENCIL_BUFFER_BIT;
if (depth !== true) {
parameters.clearStencil = depth;
}
}
OK understood, yes it looks like a bug.
The status related to stencil seems to be set to the depth state, and I am not sure if this is intentional or a bug
https://github.com/visgl/luma.gl/blob/master/modules/webgl/src/classic/clear.ts#L53-L58