mirror of
https://github.com/aap/librw.git
synced 2025-12-22 02:19:56 +00:00
fixes to d3d; implemented some allocation counters
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
|
||||
namespace rw {
|
||||
|
||||
int32 Image::numAllocated;
|
||||
|
||||
// TODO: full 16 bit support
|
||||
|
||||
Image*
|
||||
@@ -29,6 +31,7 @@ Image::create(int32 width, int32 height, int32 depth)
|
||||
RWERROR((ERR_ALLOC, sizeof(Image)));
|
||||
return nil;
|
||||
}
|
||||
numAllocated++;
|
||||
img->flags = 0;
|
||||
img->width = width;
|
||||
img->height = height;
|
||||
@@ -45,6 +48,7 @@ Image::destroy(void)
|
||||
{
|
||||
this->free();
|
||||
rwFree(this);
|
||||
numAllocated--;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user