mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[d3d9] Properly expose the MaxVertexBlendMatrixIndex capability
This commit is contained in:
parent
4b10846008
commit
8b6cbda6de
@ -529,7 +529,7 @@ namespace dxvk {
|
||||
// Max Vertex Blend Matrices
|
||||
pCaps->MaxVertexBlendMatrices = 4;
|
||||
// Max Vertex Blend Matrix Index
|
||||
pCaps->MaxVertexBlendMatrixIndex = 8;
|
||||
pCaps->MaxVertexBlendMatrixIndex = 0;
|
||||
// Max Point Size
|
||||
pCaps->MaxPointSize = 256.0f;
|
||||
// Max Primitive Count
|
||||
|
@ -268,7 +268,15 @@ namespace dxvk {
|
||||
|
||||
|
||||
HRESULT STDMETHODCALLTYPE D3D9DeviceEx::GetDeviceCaps(D3DCAPS9* pCaps) {
|
||||
return m_adapter->GetDeviceCaps(m_deviceType, pCaps);
|
||||
if (pCaps == nullptr)
|
||||
return D3DERR_INVALIDCALL;
|
||||
|
||||
m_adapter->GetDeviceCaps(m_deviceType, pCaps);
|
||||
|
||||
// When in SWVP mode, 256 matrices can be used for indexed vertex blending
|
||||
pCaps->MaxVertexBlendMatrixIndex = m_isSWVP ? 255 : 8;
|
||||
|
||||
return D3D_OK;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user