2506 {
2507 IDirect3DDevice9* ptr;
2508 int num;
2509 if (useFilter)
2510 {
2512 num = ((delegate* unmanaged[Stdcall, Stdcall]<
IntPtr, IDirect3DSurface9*, tagRECT*, IDirect3DSurface9*, tagRECT*, _D3DTEXTUREFILTERTYPE,
int>)(
int)(*(uint*)(*(
int*)ptr + 136)))((nint)ptr, pSourceSurface,
null, pDestinationSurface,
null, (_D3DTEXTUREFILTERTYPE)2);
2513 if (num >= 0)
2514 {
2515 return num;
2516 }
2517 }
2519 num = ((delegate* unmanaged[Stdcall, Stdcall]<
IntPtr, IDirect3DSurface9*, tagRECT*, IDirect3DSurface9*, tagRECT*, _D3DTEXTUREFILTERTYPE,
int>)(
int)(*(uint*)(*(
int*)ptr + 136)))((nint)ptr, pSourceSurface,
null, pDestinationSurface,
null, (_D3DTEXTUREFILTERTYPE)0);
2520 if (num >= 0)
2521 {
2522 return num;
2523 }
2524 return _003CModule_003E.D3DXLoadSurfaceFromSurface(pDestinationSurface, null, null, pSourceSurface, null, null, uint.MaxValue, 0u);
2525 }
unsafe IDirect3DDevice9 * pComPtr