Skip to content

FIX typo that caused webgl shaders not to be set#620

Merged
mvdoc merged 1 commit intogallantlab:mainfrom
kroq-gar78:fix-typo-magfilter
Apr 18, 2026
Merged

FIX typo that caused webgl shaders not to be set#620
mvdoc merged 1 commit intogallantlab:mainfrom
kroq-gar78:fix-typo-magfilter

Conversation

@kroq-gar78
Copy link
Copy Markdown
Contributor

@kroq-gar78 kroq-gar78 commented Apr 18, 2026

Problem

When displaying long movie volumes, voxels can sometimes appear to "drop out". Only the voxel boundaries would be rendered, and the rest of the surface would remain blank. This seemed to only happen after the first few frames of the video (between 8 and 30 with Firefox my laptop, low 100s for the headless viewer). It is not the effect of rendering partially loaded volumes -- this happens even after letting the browser "rest" for several minutes before interacting with the viewer.

Solution

The typo meant that magFilter was not set (only minFilter was) for all volumes loaded some time after the page was loaded.

Before fixing the typo:
image

After (expected):
image

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request corrects a typo in the property name magFilter, changing it from magfilter to the correct camelCase magFilter in two locations within cortex/webgl/resources/js/dataset.js. I have no feedback to provide as there were no review comments.

@kroq-gar78 kroq-gar78 marked this pull request as ready for review April 18, 2026 07:35
@mvdoc
Copy link
Copy Markdown
Contributor

mvdoc commented Apr 18, 2026

seem reasonable

@mvdoc mvdoc merged commit 0cebcb2 into gallantlab:main Apr 18, 2026
13 checks passed
@kroq-gar78 kroq-gar78 deleted the fix-typo-magfilter branch April 19, 2026 01:35
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.

2 participants