ソースを参照

DX11: Fix draw vertex count not updating (#2337)

Antti Heinonen 5 年 前
コミット
40259e35f8
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/renderer_d3d11.cpp

+ 1 - 1
src/renderer_d3d11.cpp

@@ -6215,7 +6215,7 @@ namespace bgfx { namespace d3d11
 
 				if (0 != currentState.m_streamMask)
 				{
-					uint32_t numVertices       = currentState.m_numVertices;
+					uint32_t numVertices       = draw.m_numVertices;
 					uint32_t numIndices        = 0;
 					uint32_t numPrimsSubmitted = 0;
 					uint32_t numInstances      = 0;