]> git.cworth.org Git - apitrace/commitdiff
d3d9trace: Fix D3DPT_TRIANGLEFAN vertex count computation.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 3 May 2013 09:47:39 +0000 (10:47 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 3 May 2013 09:48:11 +0000 (10:48 +0100)
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;