pmndrs / drei

🥉 useful helpers for react-three-fiber
https://docs.pmnd.rs/drei
MIT License
8.36k stars 699 forks source link

"Vertex buffer is not big enough for the draw call" error when using vertexColors property with Line #1444

Open mf-bruce opened 1 year ago

mf-bruce commented 1 year ago

Problem description:

When using the vertexColors prop on the Line component the component does not get drawn and instead I see repeated instances of the following gl error:

WebGL-0x1380a92d500] GL_INVALID_OPERATION: Vertex buffer is not big enough for the draw call

I have found that if color is additionally specified, the error goes away

Relevant code:

See example here: https://codesandbox.io/s/line2d-forked-l080om?file=/src/App.js:396-549

Suggested solution:

github-actions[bot] commented 6 days ago

Thank you for contributing! We’re marking this issue as stale as a gentle reminder to revisit it and give it the attention it needs to move forward.

Any activity, like adding an update or comment, will automatically remove the stale label so it stays on our radar.

Feel free to reach out on Discord if you need support or feedback from the community. This issue will close automatically soon if there’s no further activity. Thank you for understanding and for being part of the project!