mirror of
https://github.com/jkdansereau/goldeneye-pc-port.git
synced 2026-10-23 15:52:42 +02:00
gfx_opengl_set_sampler_parameters set GL_TEXTURE_MAX_ANISOTROPY only for mipmapped samplers and never reset it. GL ids freed by gfx_texture_cache_delete_range are recycled in unordered_map order (keyed by texture address), so a non-mipmapped glyph could inherit a world texture's 4x anisotropy depending on the binary's data layout -> +-1-2 per channel on the MP pause-menu text in couch 2P (frame 2400). Now always written (level when mipmapped, 1 otherwise). #ifdef PORT, render-only. Verified: couch 2P frames 2300-2500 fix vs fix+3KB array 0/21 differ (before: 13/21); base vs fix: couch 2P 0/21, solo -level_09 f1800 and couch 4P f2400 byte-identical; netplay 2P SH identical (2 671 ticks). Findings D430 + index row, porting note. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit ec5057f026259f35d4075833e89bf6fd0b6c467f)