Skip to content

Instantly share code, notes, and snippets.

@Swyter
Last active July 2, 2023 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Swyter/f05a3e13558e67dcba74a76be5a1e451 to your computer and use it in GitHub Desktop.
Save Swyter/f05a3e13558e67dcba74a76be5a1e451 to your computer and use it in GitHub Desktop.
`mb_warband_linux` fixes

Enable trilinear texture filtering to fix the ugly line artifacts of the hard mipmap transitions when zooming in:

rglGraphics_context::set_sampler_state() at 0x081806d0:
08180910 c7 44 24 08 01 27 00 00      MOV        dword ptr [ESP + local_24],0x2701 # GL_LINEAR_MIPMAP_NEAREST (0x2701) -> GL_LINEAR_MIPMAP_LINEAR (0x2703)
08180920 c7 44 24 08 01 27 00 00      MOV        dword ptr [ESP + local_24],0x2701 # GL_LINEAR_MIPMAP_NEAREST (0x2701) -> GL_LINEAR_MIPMAP_LINEAR (0x2703)

SDL_GL_DEPTH_SIZE; Improve the depth buffer resolution/quality from 24 to 32 bits:

process_directx_call() at 0x082ec490:
082ec6fc c7 44 24 04 18 00 00 00      MOV        dword ptr [ESP + local_a8],24
082ec704 c7 04 24 06 00 00 00         MOV        dword ptr [ESP]=>local_ac,0x6
082ec70b e8 00 02 e5 ff               CALL       <EXTERNAL>::SDL_GL_SetAttribute                  undefined SDL_GL_SetAttribute()
@Swyter
Copy link
Author

Swyter commented Jul 2, 2023

mb_warband_linux_binaries.zip.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment