We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reported in visgl/deck.gl#6224 (comment)
When querying the bound buffer, gl.getParameter(gl.ARRAY_BUFFER_BINDING) always returns the bound buffer when it was queried the first time.
gl.getParameter(gl.ARRAY_BUFFER_BINDING)
gl.getParameter(gl.ARRAY_BUFFER_BINDING) should return the currently bound buffer.
const gl = createGLContext(); const buffer = new Buffer(gl, {}); console.log(gl.getParameter(gl.ARRAY_BUFFER_BINDING)); buffer.bind(); console.log(gl.getParameter(gl.ARRAY_BUFFER_BINDING)); buffer.unbind(); console.log(gl.getParameter(gl.ARRAY_BUFFER_BINDING));
Result: null, null, null
null
Comment out the first console.log and the result is WebGLBuffer {}, WebGLBuffer {}
console.log
WebGLBuffer {}
The text was updated successfully, but these errors were encountered:
Pessimistress
No branches or pull requests
Reported in visgl/deck.gl#6224 (comment)
Actual Result
When querying the bound buffer,
gl.getParameter(gl.ARRAY_BUFFER_BINDING)
always returns the bound buffer when it was queried the first time.Expected Result
gl.getParameter(gl.ARRAY_BUFFER_BINDING)
should return the currently bound buffer.Reproduce Steps
Result:
null
,null
,null
Comment out the first
console.log
and the result isWebGLBuffer {}
,WebGLBuffer {}
To Do List
The text was updated successfully, but these errors were encountered: