Skip to content

Commit

Permalink
Use D3DXCreateTexture in D3DXGetSurfacePixels
Browse files Browse the repository at this point in the history
  • Loading branch information
botder committed Sep 12, 2023
1 parent 56d81d4 commit 058dc50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Client/core/Graphics/CPixelsManager.cpp
Expand Up @@ -536,7 +536,7 @@ bool CPixelsManager::D3DXGetSurfacePixels(IDirect3DSurface9* pD3DSurface, CPixel
Desc.Height = pRect->bottom - pRect->top;
}

if (FAILED(m_pDevice->CreateTexture(Desc.Width, Desc.Height, !bMipMaps, NULL, dxFormat, D3DPOOL_SYSTEMMEM, &pD3DTempTexture, NULL)))
if (FAILED(D3DXCreateTexture(m_pDevice, Desc.Width, Desc.Height, !bMipMaps, NULL, dxFormat, D3DPOOL_SYSTEMMEM, &pD3DTempTexture)))
return false;

if (FAILED(pD3DTempTexture->GetSurfaceLevel(0, &pD3DTempSurface)))
Expand Down

0 comments on commit 058dc50

Please sign in to comment.