Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Content-Length: 287172 | pFad | http://github.com/emilk/egui/discussions/5464
2CFetched URL: http://github.com/emilk/egui/discussions/5464
Alternative Proxies:
-
Might not be egui-related but I'm pretty lost.
I'm creating/binding a VAO, calling
vertex_attrib_pointer_f32
, and unbinding the VAO.When I bind the VAO to render, I get a garbage result unless I call
vertex_attrib_pointer_f32
again.This second call only has to happen once - I can wrap it with
std::sync::Once
and all future succeed.The VBO remains bound so the VAO itself appears to be intact.
Stock
Cargo.toml
with:With the duplicate calls:
Without:
The incorrect render always has that shape and the color is always uniform based on UV (0,0) in the texture.
The
vertex_attrib_pointer_f32
calls are identical and I haven't solved this over 2-3 days. Does anyone see the problem in my MRE, or have theories about how egui and friends are interfering?Beta Was this translation helpful? Give feedback.
All reactions