Skip to content

Commit

Permalink
Add error logging for windowed palette surfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud committed Sep 6, 2023
1 parent 61dd605 commit 110ecff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dllmain/BuildNo.rc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define BUILD_NUMBER 6794
#define BUILD_NUMBER 6795
4 changes: 4 additions & 0 deletions ddraw/IDirectDrawSurfaceX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3423,6 +3423,10 @@ inline LPDIRECT3DTEXTURE9 m_IDirectDrawSurfaceX::GetD3D9Texture()
// Primary display texture
if (PrimaryDisplayTexture)
{
if (IsPrimarySurface() && surface.IsUsingWindowedMode && IsPalette() && (surface.DisplayTexture || !primary.PaletteTexture))
{
Logging::Log() << __FUNCTION__ << " Error: using non-shader palette surface on window mode not supported!";
}
return PrimaryDisplayTexture;
}

Expand Down

0 comments on commit 110ecff

Please sign in to comment.