MCPcopy Create free account
hub / github.com/Wemino/EchoPatch / LoadWorldShadows_Hook

Function LoadWorldShadows_Hook

src/Engine/Engine.cpp:1236–1247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1234// ===========================
1235
1236static bool __cdecl LoadWorldShadows_Hook(int* a1)
1237{
1238 if (g_State.isUsingNvidiaDevice)
1239 SetVertexBufferPool(D3DPOOL_SYSTEMMEM);
1240
1241 bool result = LoadWorldShadows(a1);
1242
1243 if (g_State.isUsingNvidiaDevice)
1244 SetVertexBufferPool(D3DPOOL_MANAGED);
1245
1246 return result;
1247}
1248
1249static bool __fastcall CreateAndInitializeDevice_Hook(DWORD* thisp, int, DWORD* a2, DWORD* a3, int a4, char a5)
1250{

Callers

nothing calls this directly

Calls 1

SetVertexBufferPoolFunction · 0.85

Tested by

no test coverage detected