Skip to content

Commit

Permalink
Fix when PrimaryDisplayTexture is sent
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud committed Jan 22, 2025
1 parent 9733f83 commit b258136
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 7449
#define BUILD_NUMBER 7450
2 changes: 1 addition & 1 deletion ddraw/IDirectDrawSurfaceX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4331,7 +4331,7 @@ LPDIRECT3DTEXTURE9 m_IDirectDrawSurfaceX::GetD3d9Texture()
inline LPDIRECT3DTEXTURE9 m_IDirectDrawSurfaceX::Get3DTexture()
{
// Primary display texture
if (PrimaryDisplayTexture)
if (PrimaryDisplayTexture && ShouldPresentToWindow(true))
{
if (IsPalette() && surface.IsUsingWindowedMode && (surface.DisplayTexture || !primary.PaletteTexture))
{
Expand Down

0 comments on commit b258136

Please sign in to comment.