Explorar el Código

Morph shape vertex buffer is now of valid size

BearishSun hace 9 años
padre
commit
c27ef332bc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Source/BansheeEngine/Source/BsRenderable.cpp

+ 1 - 1
Source/BansheeEngine/Source/BsRenderable.cpp

@@ -230,7 +230,7 @@ namespace BansheeEngine
 		{
 			SPtr<MorphShapes> morphShapes = mMesh->getMorphShapes();
 
-			UINT32 vertexSize = sizeof(Vector3) + sizeof(Vector4);
+			UINT32 vertexSize = sizeof(Vector3) + sizeof(UINT32);
 			UINT32 numVertices = morphShapes->getNumVertices();
 
 			SPtr<VertexBufferCore> vertexBuffer = VertexBufferCore::create(vertexSize, numVertices, GBU_DYNAMIC);