diff --git a/src/dawn_native/ExternalTexture.cpp b/src/dawn_native/ExternalTexture.cpp index ed157bc135..db211045fe 100644 --- a/src/dawn_native/ExternalTexture.cpp +++ b/src/dawn_native/ExternalTexture.cpp @@ -119,6 +119,8 @@ namespace dawn::native { : ApiObjectBase(device, tag) { } + ExternalTextureBase::~ExternalTextureBase() = default; + MaybeError ExternalTextureBase::Initialize(DeviceBase* device, const ExternalTextureDescriptor* descriptor) { // Store any passed in TextureViews associated with individual planes. diff --git a/src/dawn_native/ExternalTexture.h b/src/dawn_native/ExternalTexture.h index 0b8b28c528..6a2476af1f 100644 --- a/src/dawn_native/ExternalTexture.h +++ b/src/dawn_native/ExternalTexture.h @@ -58,6 +58,8 @@ namespace dawn::native { ExternalTextureBase(DeviceBase* device); void DestroyImpl() override; + ~ExternalTextureBase() override; + private: enum class ExternalTextureState { Alive, Destroyed }; ExternalTextureBase(DeviceBase* device, const ExternalTextureDescriptor* descriptor);