You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(d3dx): Implement D3DXLoadSurfaceFromSurface using Direct D3D8 API (TheSuperHackers#2176)
Implement surface copying using D3D8's native IDirect3DDevice8::CopyRects
instead of Wine/d3dx8.dll. This provides hardware-accelerated surface copying
using Direct3D 8 API directly.
Implementation:
- Call pSrcSurface->GetDevice() to obtain D3D8 device
- Use device->CopyRects() for hardware-accelerated copy
- Same API as DX8Wrapper::_Copy_DX8_Rects (14 uses in codebase)
- No Wine code needed - pure D3D8 API
Why Direct D3D8 instead of Wine:
- CopyRects is native D3D8 functionality (no d3dx8.dll required)
- Avoids complex Wine texture locking/filtering code
- Game already uses this API extensively via DX8Wrapper
- Hardware-accelerated, same performance as existing code
Function now fully implemented with working surface copy.
0 commit comments