fixes to d3d; implemented some allocation counters

This commit is contained in:
aap
2020-04-17 14:34:37 +02:00
parent 7bd6d4649e
commit 206547b404
18 changed files with 293 additions and 40 deletions

View File

@@ -12,6 +12,8 @@
namespace rw {
int32 Camera::numAllocated;
PluginList Camera::s_plglist = { sizeof(Camera), sizeof(Camera), nil, nil };
void
@@ -279,6 +281,7 @@ Camera::create(void)
RWERROR((ERR_ALLOC, s_plglist.size));
return nil;
}
numAllocated++;
cam->object.object.init(Camera::ID, 0);
cam->object.syncCB = cameraSync;
cam->beginUpdateCB = defaultBeginUpdateCB;
@@ -339,6 +342,7 @@ Camera::destroy(void)
if(this->clump)
this->inClump.remove();
rwFree(this);
numAllocated--;
}
void