elishacloud / dxwrapper

Fixes compatibility issues with older games running on Windows 10/11 by wrapping DirectX dlls. Also allows loading custom libraries with the file extension .asi into game processes.
zlib License
1.15k stars 82 forks source link

Fixed not being able to create depth textures. #181

Closed dkollmann closed 1 year ago

dkollmann commented 1 year ago

Fixed not being able to create depth textures.

elishacloud commented 1 year ago

Thanks for the pull request I don't think putting this in the Direct3D9 wrapper is the correct place for it. A Direct3D9 app should never call CreateOffscreenPlainSurface() when they are trying to create a depth buffer.

I added another update that I think is better here: 99eb3e07f93ad5b969e869312e3f54be8d8d0006