use SAFE_RELEASE to make code cleaner
This commit is contained in:
parent
817d025328
commit
c2de38c115
|
@ -58,21 +58,9 @@ void BBox::Init()
|
|||
|
||||
void BBox::Shutdown()
|
||||
{
|
||||
if (s_bbox_buffer != nullptr)
|
||||
{
|
||||
s_bbox_buffer->Release();
|
||||
s_bbox_buffer = nullptr;
|
||||
}
|
||||
if (s_bbox_staging_buffer != nullptr)
|
||||
{
|
||||
s_bbox_staging_buffer->Release();
|
||||
s_bbox_staging_buffer = nullptr;
|
||||
}
|
||||
if (s_bbox_uav != nullptr)
|
||||
{
|
||||
s_bbox_uav->Release();
|
||||
s_bbox_uav = nullptr;
|
||||
}
|
||||
SAFE_RELEASE(s_bbox_buffer);
|
||||
SAFE_RELEASE(s_bbox_staging_buffer);
|
||||
SAFE_RELEASE(s_bbox_uav);
|
||||
}
|
||||
|
||||
void BBox::Set(int index, int value)
|
||||
|
|
Loading…
Reference in New Issue