-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
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
Generic attribute / instanced draw mystery #427
Comments
@dfcreative funny enough - if you add a |
the issue appears to be the refresh proc for the |
it appears that this proc refreshes vertex attribute state based on some limits modifying any shared attributes in the context. this is likely the issue. |
@mikolalysenko is it worth changing or augmenting the availability of the |
cc @dfcreative |
@jwerle yeah, that helps, thanks! As for performance, it is ~0.15ms on my laptop, seems not expensive. |
I had a similar issue with resizing FBOs on window resize event in a project. If a command is executed outside of draw1()
draw2()
setTimeout(() => {
regl.poll()
draw1()
}, 200) @dfcreative does this fix the issue? |
Fixed with 1.3.1 |
Second day I am struggling with mysterious two-level bug, trying to make regl-line2d and regl-scatter2d work together.
The minimal test case:
gives
[.Offscreen-For-WebGL-0000000005E4B5E0]GL ERROR :GL_INVALID_OPERATION : glDrawArrays: attempt to draw with all attributes having non-zero divisors
. That does not happen if we invoke onlydraw1()
ordraw2()
separately.Second part of the bug - if we disable instanced draw:
and call draw methods as
we get blank screen with all the data cleared.
Tried to dig regl code, but had hard time getting the whole concept at once.
@mikolalysenko hope for your assistance, that slows down progress in plotly/plotly.js#949
The text was updated successfully, but these errors were encountered: