]> git.cworth.org Git - apitrace/blobdiff - helpers/d3dcommonsize.hpp
d3d9trace: Fix D3DPT_TRIANGLEFAN vertex count computation.
[apitrace] / helpers / d3dcommonsize.hpp
index b1f7b284d024001b83d444db5b00900fc98c4859..0b45086356043fccb023930bdbd538dbd7ce2fa4 100644 (file)
@@ -57,7 +57,7 @@ _vertexCount(D3DPRIMITIVETYPE PrimitiveType, UINT PrimitiveCount)
     case D3DPT_TRIANGLESTRIP:
         return PrimitiveCount + 2;
     case D3DPT_TRIANGLEFAN:
-        return PrimitiveCount + 1;
+        return PrimitiveCount + 2;
     default:
         os::log("apitrace: warning: %s: unknown D3DPRIMITIVETYPE %u\n", __FUNCTION__, PrimitiveType);
         return 0;