fix(linux): Resolve black infantry textures and update build scripts#178
Merged
Conversation
…asing Updates the Docker base image and related documentation to use Ubuntu 26.04 instead of 24.04. Resolves a case-sensitivity build error in MiniAudioManager.cpp caused by conflicting `File.h` and `file.h` includes that surfaced with the new compiler/environment.
Disables the DXVK FPS overlay (`DXVK_HUD=0`) in all Linux execution and deployment scripts. The game already has a native FPS counter, so the Vulkan overlay is redundant and clutters the screen. Fixes an issue where casual players would see the overlay enabled by default.
Backports the manual box filter downsampling for A4R4G4B4 and R5G6B5 textures from macOS to Linux. This fixes an issue where infantry shadows and recolored textures rendered entirely black at lower mipmap levels because the GLI library does not support these formats. Closes issue where infantry was rendering black on Linux.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes the issue on Linux where infantry models render as solid black silhouettes at typical gameplay distances.
Changes
D3DFMT_A4R4G4B4andD3DFMT_R5G6B5from macOS to Linux ind3dx8_compat.cpp. The Linux port previously relied entirely on the GLI library to generate mipmaps, which lacked support for these specific formats, causingD3DXLoadSurfaceFromSurfaceto fail. Bypassing GLI for these formats and applying the manual box filter restores rendering parity with macOS and the original Windows targets.DXVK_HUDFPS overlay by default since the game has a native framerate counter.File.hvsfile.h).Validation