Skip to content

Commit

Permalink
Fix bug in nearest pixel sampling
Browse files Browse the repository at this point in the history
Enabling it would disable border settings.
  • Loading branch information
jonathanhogg committed Dec 22, 2024
1 parent fccb9d9 commit 4a7c4da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flitter/render/window/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def render(self, node, references, *, srgb=False, colorbits=None, composite='ove
else:
sampler_args = {'border_color': (0, 0, 0, 0)}
if node.get('nearest', 1, bool, False):
sampler_args = {'filter': (moderngl.NEAREST, moderngl.NEAREST)}
sampler_args['filter'] = moderngl.NEAREST, moderngl.NEAREST
child_textures = self.child_textures
samplers = []
self.glctx.extra['zero'].use(0)
Expand Down

0 comments on commit 4a7c4da

Please sign in to comment.