Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 321 vs 324 for /trunk/Source Code/Geometry/Shapes/Object3D.cpp

Diff revisions: vs.
  @@ -22,8 +22,9 @@
22 22
23 23 Object3D::~Object3D()
24 24 {
25 - if(!bitCompare(_geometryFlagMask, OBJECT_FLAG_NO_VB))
26 - SAFE_DELETE(_buffer);
25 + if ( !bitCompare( _geometryFlagMask, OBJECT_FLAG_NO_VB ) ) {
26 + SAFE_DELETE( _buffer );
27 + }
27 28 }
28 29
29 30 void Object3D::setGeometryVB(VertexBuffer* const vb) {
  @@ -64,7 +65,7 @@
64 65 vec3<F32> v1 , v2, normal;
65 66 //Code from http://devmaster.net/forums/topic/1065-calculating-normals-of-a-mesh/
66 67
67 - vectorImpl<vec3<F32> >* normal_buffer = new vectorImpl<vec3<F32> >[getGeometryVB()->getPosition().size()];
68 + vectorImpl<vec3<F32> >* normal_buffer = New vectorImpl<vec3<F32> >[getGeometryVB()->getPosition().size()];
68 69
69 70 for( U32 i = 0; i < getGeometryVB()->getIndexCount(); i += 3 ) {
70 71 // get the three vertices that make the faces