Skip to content

Commit

Permalink
Ported SADX:FE texture filtering fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-fadely committed Jul 10, 2015
1 parent 4aaa843 commit 9974fce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SADXModLoader/dllmain.cpp
Expand Up @@ -1961,6 +1961,11 @@ static void __cdecl InitMods(void)
DWORD oldprot;
VirtualProtect((void *)0x7DB2A0, 0xB6D60, PAGE_WRITECOPY, &oldprot);

// Enables GUI texture filtering (D3DTEXF_POINT -> D3DTEXF_LINEAR)
WriteData((uint8_t*)0x0078B7C4, (uint8_t)0x02);
WriteData((uint8_t*)0x0078B7D8, (uint8_t)0x02);
WriteData((uint8_t*)0x0078B7EC, (uint8_t)0x02);

// Map of files to replace and/or swap.
// This is done with a second map instead of sadx_fileMap directly
// in order to handle multiple mods.
Expand Down

0 comments on commit 9974fce

Please sign in to comment.