Skip to content

Commit

Permalink
Don't shadow Depth Stencil surfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud committed Sep 13, 2024
1 parent f6ff22f commit 2932c0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dllmain/BuildNo.rc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define BUILD_NUMBER 7154
#define BUILD_NUMBER 7155
2 changes: 1 addition & 1 deletion d3d9/IDirect3DSurface9.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class m_IDirect3DSurface9 : public IDirect3DSurface9, public AddressLookupTableD
LPDIRECT3DSURFACE9 GetProxyInterface() { return ProxyInterface; }
LPDIRECT3DSURFACE9 GetNonMultiSampledSurface(const RECT* pSurfaceRect, DWORD Flags)
{
if (Desc.MultiSampleType)
if (Desc.MultiSampleType && !(Desc.Usage & D3DUSAGE_DEPTHSTENCIL))
{
m_IDirect3DSurface9* pSurface = m_GetNonMultiSampledSurface(pSurfaceRect, Flags);
if (pSurface)
Expand Down

0 comments on commit 2932c0a

Please sign in to comment.