mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
D3D9: Fall back to just creating a depth surface instead of a depth texture if the latter one isn't supported by the hardware.
This is a workaround for issue 3256. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6737 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -78,6 +78,9 @@ bool FixTextureSize(int& width, int& height);
|
||||
bool CheckTextureSupport(DWORD usage, D3DFORMAT tex_format);
|
||||
bool CheckDepthStencilSupport(D3DFORMAT target_format, D3DFORMAT depth_format);
|
||||
|
||||
D3DFORMAT GetSupportedDepthTextureFormat();
|
||||
D3DFORMAT GetSupportedDepthSurfaceFormat(D3DFORMAT target_format);
|
||||
|
||||
// The following are "filtered" versions of the corresponding D3Ddev-> functions.
|
||||
void SetTexture(DWORD Stage, IDirect3DBaseTexture9 *pTexture);
|
||||
void SetRenderState(D3DRENDERSTATETYPE State, DWORD Value);
|
||||
|
Reference in New Issue
Block a user