1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +01:00

d3d9: Remove an unused variable

This fixes a gcc warning (originally reported by Saancreed)
This commit is contained in:
Echo J 2024-02-06 10:59:21 +02:00 committed by Robin Kertels
parent 5312ef1cf9
commit fae78407a2

View File

@ -5176,7 +5176,6 @@ namespace dxvk {
auto* ibo = GetCommonBuffer(m_state.indices);
if (likely(ibo != nullptr)) {
uint32_t indexStride = ibo->Desc()->Format == D3D9Format::INDEX16 ? 2 : 4;
VkIndexType indexType = DecodeIndexType(ibo->Desc()->Format);
uint32_t offset = indexStride * FirstIndex;
uint32_t indexBufferSize = ibo->Desc()->Size;
if (offset < indexBufferSize) {