Diff of /branches/Axiom_Upgrade_0.8.0/mvsm/TreeBillboardRenderer.cs [r286] .. [r287] Maximize Restore

  Switch to side-by-side view

--- a/branches/Axiom_Upgrade_0.8.0/mvsm/TreeBillboardRenderer.cs
+++ b/branches/Axiom_Upgrade_0.8.0/mvsm/TreeBillboardRenderer.cs
@@ -85,7 +85,8 @@
 
                     // create the hardware vertex buffer and set up the buffer binding
                     HardwareVertexBuffer hvBuffer = HardwareBufferManager.Instance.CreateVertexBuffer(
-                        vertexData.vertexDeclaration.GetVertexSize(0), vertexData.vertexCount,
+                        vertexData.vertexDeclaration, vertexData.vertexCount,
+                        // vertexData.vertexDeclaration.GetVertexSize(0), vertexData.vertexCount,
                         BufferUsage.StaticWriteOnly, false);
 
                     vertexData.vertexBufferBinding.SetBinding(0, hvBuffer);
@@ -93,7 +94,7 @@
                     renderOp.vertexData = vertexData;
 
                     // lock the vertex buffer
-                    IntPtr ipBuf = (System.IntPtr)hvBuffer.Lock(BufferLocking.Discard);
+                    IntPtr ipBuf = (IntPtr)hvBuffer.Lock(BufferLocking.Discard).Ptr;
 
                     int bufferOff = 0;