Skip to content

Fix sampler params not respecting active texture unit#201

Merged
leod merged 1 commit into
mainfrom
fix_sampler_params
Jun 30, 2026
Merged

Fix sampler params not respecting active texture unit#201
leod merged 1 commit into
mainfrom
fix_sampler_params

Conversation

@leod

@leod leod commented Jun 30, 2026

Copy link
Copy Markdown
Owner

This fixes sampler params (such as min/mag filters) for the case that the texture already had been bound in a previous draw call. In this case, the new sampler params were applied to the currently active texture unit (as in glActiveTexture) instead of the texture unit to which the texture was actually bound.

(In the future, it'd be nice to be able to add unit tests for catching such issues!)

@leod leod merged commit 1e0d146 into main Jun 30, 2026
2 checks passed
@leod leod deleted the fix_sampler_params branch June 30, 2026 14:32
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.

1 participant