diff --git a/src/dawn_native/BindGroup.cpp b/src/dawn_native/BindGroup.cpp index d81ffc084d..b5dfd79057 100644 --- a/src/dawn_native/BindGroup.cpp +++ b/src/dawn_native/BindGroup.cpp @@ -399,7 +399,9 @@ namespace dawn_native { TrackInDevice(); } - BindGroupBase::~BindGroupBase() { + BindGroupBase::~BindGroupBase() = default; + + void BindGroupBase::DestroyImpl() { if (mLayout != nullptr) { ASSERT(!IsError()); for (BindingIndex i{0}; i < mLayout->GetBindingCount(); ++i) { @@ -408,9 +410,6 @@ namespace dawn_native { } } - void BindGroupBase::DestroyImpl() { - } - void BindGroupBase::DeleteThis() { // Add another ref to the layout so that if this is the last ref, the layout // is destroyed after the bind group. The bind group is slab-allocated inside