Skip to content

Commit 058dc50

Browse files
authored
Use D3DXCreateTexture in D3DXGetSurfacePixels
1 parent 56d81d4 commit 058dc50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Client/core/Graphics/CPixelsManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ bool CPixelsManager::D3DXGetSurfacePixels(IDirect3DSurface9* pD3DSurface, CPixel
536536
Desc.Height = pRect->bottom - pRect->top;
537537
}
538538

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

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

0 commit comments

Comments
 (0)