Skip to content

Fix hidden skin array buffer - #3481

Merged
copybara-service[bot] merged 2 commits into
google-deepmind:mainfrom
sylvesterkaczmarek:fix-hidden-skin-array-buffer
Aug 25, 2026
Merged

Fix hidden skin array buffer#3481
copybara-service[bot] merged 2 commits into
google-deepmind:mainfrom
sylvesterkaczmarek:fix-hidden-skin-array-buffer

Conversation

@sylvesterkaczmarek

@sylvesterkaczmarek sylvesterkaczmarek commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Fixes #3479.

mjr_render uploads dynamic skin data to VBOs. When a skin is hidden, the resulting GL_ARRAY_BUFFER binding can remain active. mjr_figure uses client-memory vertex arrays, so the stale VBO binding causes its pointers to be interpreted as buffer offsets and plotted lines can disappear.

This change resets GL_ARRAY_BUFFER before 2D rendering, ensuring client-array rendering starts from the expected OpenGL state.

A regression test covers the hidden-skin → mjr_figure sequence and verifies that the figure line is rendered.

@google-cla

google-cla Bot commented Aug 14, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@sylvesterkaczmarek
sylvesterkaczmarek marked this pull request as ready for review August 15, 2026 20:12
@copybara-service
copybara-service Bot merged commit 727a9e9 into google-deepmind:main Aug 25, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hidden skin group leaves GL_ARRAY_BUFFER bound and breaks mjr_figure client arrays

2 participants