Skip to content

Commit

Permalink
Remove "CreateImageSurface" R8G8B8 swap with X8R8G8B (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterSnowfall authored Sep 18, 2024
1 parent ac41b09 commit 466fb1f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions source/d3d8to9_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,14 +414,6 @@ HRESULT STDMETHODCALLTYPE Direct3DDevice8::CreateImageSurface(UINT Width, UINT H

*ppSurface = nullptr;

if (Format == D3DFMT_R8G8B8)
{
#ifndef D3D8TO9NOLOG
LOG << "> Replacing format 'D3DFMT_R8G8B8' with 'D3DFMT_X8R8G8B8' ..." << std::endl;
#endif
Format = D3DFMT_X8R8G8B8;
}

IDirect3DSurface9 *SurfaceInterface = nullptr;

const HRESULT hr = ProxyInterface->CreateOffscreenPlainSurface(Width, Height, Format, D3DPOOL_SYSTEMMEM, &SurfaceInterface, nullptr);
Expand Down

0 comments on commit 466fb1f

Please sign in to comment.