mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 12:42:34 +01:00
WebGPU: Expect release after destroy. (#3557)
This commit is contained in:
committed by
GitHub
parent
780ef58e97
commit
9ca7782405
@@ -519,12 +519,13 @@ WGPU_IMPORT
|
||||
|
||||
#undef WGPU_RELEASE_FUNC
|
||||
|
||||
#define WGPU_DESTROY_FUNC(_name) \
|
||||
#define WGPU_DESTROY_FUNC(_name) \
|
||||
inline void wgpuDestroy(WGPU##_name& _obj) \
|
||||
{ \
|
||||
if (NULL != _obj) \
|
||||
{ \
|
||||
wgpu##_name##Destroy(_obj); \
|
||||
wgpu##_name##Release(_obj); \
|
||||
_obj = NULL; \
|
||||
} \
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user