mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
D3D11: Use ComPtr smart pointer where possible
This commit is contained in:
@ -15,22 +15,6 @@
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Common/MsgHandler.h"
|
||||
|
||||
#define SAFE_RELEASE(x) \
|
||||
{ \
|
||||
if (x) \
|
||||
(x)->Release(); \
|
||||
(x) = nullptr; \
|
||||
}
|
||||
#define SAFE_DELETE(x) \
|
||||
{ \
|
||||
delete (x); \
|
||||
(x) = nullptr; \
|
||||
}
|
||||
#define SAFE_DELETE_ARRAY(x) \
|
||||
{ \
|
||||
delete[](x); \
|
||||
(x) = nullptr; \
|
||||
}
|
||||
#define CHECK(cond, Message, ...) \
|
||||
if (!(cond)) \
|
||||
{ \
|
||||
|
Reference in New Issue
Block a user