Skip to content

Fix blurry UI on macOS and zziplib configure error with autoconf 2.70+#409

Open
damianoviscardi wants to merge 1 commit into
milkytracker:masterfrom
damianoviscardi:fix/macos-opengl-nearest-filter
Open

Fix blurry UI on macOS and zziplib configure error with autoconf 2.70+#409
damianoviscardi wants to merge 1 commit into
milkytracker:masterfrom
damianoviscardi:fix/macos-opengl-nearest-filter

Conversation

@damianoviscardi

@damianoviscardi damianoviscardi commented Apr 28, 2026

Copy link
Copy Markdown

Summary

  • macOS blur fix: Re-apply GL_NEAREST texture filter parameters after each glGenerateMipmap() call in MTTrackerView.mm. The Metal-backed OpenGL driver on modern macOS silently resets texture filter parameters to their defaults (GL_NEAREST_MIPMAP_LINEAR / GL_LINEAR) when glGenerateMipmap() is called — causing the UI to render with bilinear interpolation instead of nearest-neighbor and appearing blurry compared to previous versions.
  • zziplib build fix: Replace the deprecated AC_TRY_RUN macro with AC_RUN_IFELSE + AC_LANG_PROGRAM in m4/ax_check_aligned_access_required.m4. autoconf 2.70+ generates nested case constructs from AC_TRY_RUN that produce a syntax error near unexpected token ';;' in /bin/sh on macOS, preventing zziplib from configuring.

Test plan

  • Build on macOS with autoconf 2.70+ — zziplib configure step should complete without syntax errors
  • Run MilkyTracker on a Retina display — UI should appear sharp with pixel-perfect nearest-neighbor scaling

🤖 Generated with Claude Code

MTTrackerView: re-apply GL_NEAREST filter params after glGenerateMipmap()
each frame. The Metal-backed OpenGL driver on modern macOS silently resets
texture filter parameters to their defaults (GL_NEAREST_MIPMAP_LINEAR /
GL_LINEAR) when glGenerateMipmap() is called, causing the UI to render
with bilinear interpolation instead of nearest-neighbor and appearing
blurry compared to previous versions.

zziplib: the AX_CHECK_ALIGNED_ACCESS_REQUIRED m4 macro uses the deprecated
AC_TRY_RUN which, with autoconf 2.70+, generates nested case constructs
that produce a 'syntax error near unexpected token ;;' in /bin/sh on macOS,
preventing zziplib from configuring. Fix by shipping a patched copy of the
macro (replacing AC_TRY_RUN with AC_RUN_IFELSE + AC_LANG_PROGRAM) and
copying it into the submodule via ExternalProject PATCH_COMMAND before
autoreconf runs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@damianoviscardi damianoviscardi force-pushed the fix/macos-opengl-nearest-filter branch from a4fde82 to 3e29278 Compare April 28, 2026 18:04
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