Permalink
Browse files

GPU: Avoid a missing virtual destructor warning.

  • Loading branch information...
unknownbrackets committed Dec 1, 2018
1 parent 571ea0e commit b1e68c653c0461c6f205d459595993d7c0596594
Showing with 5 additions and 1 deletion.
  1. +1 −0 GPU/Common/DrawEngineCommon.h
  2. +2 −0 GPU/D3D11/DrawEngineD3D11.cpp
  3. +2 −1 GPU/Vulkan/DrawEngineVulkan.cpp
@@ -54,6 +54,7 @@ namespace Spline { struct Weight2D; }
class TessellationDataTransfer {
public:
virtual ~TessellationDataTransfer() {}
void CopyControlPoints(float *pos, float *tex, float *col, int posStride, int texStride, int colStride, const SimpleVertex *const *points, int size, u32 vertType);
virtual void SendDataToShader(const SimpleVertex *const *points, int size_u, int size_v, u32 vertType, const Spline::Weight2D &weights) = 0;
};
@@ -137,6 +137,8 @@ void DrawEngineD3D11::DestroyDeviceObjects() {
ClearTrackedVertexArrays();
ClearInputLayoutMap();
delete tessDataTransferD3D11;
tessDataTransferD3D11 = nullptr;
tessDataTransfer = nullptr;
delete pushVerts_;
delete pushInds_;
depthStencilCache_.Iterate([&](const uint64_t &key, ID3D11DepthStencilState *ds) {
@@ -211,7 +211,8 @@ void DrawEngineVulkan::FrameData::Destroy(VulkanContext *vulkan) {
void DrawEngineVulkan::DestroyDeviceObjects() {
delete tessDataTransferVulkan;
tessDataTransfer = tessDataTransferVulkan = nullptr;
tessDataTransfer = nullptr;
tessDataTransferVulkan = nullptr;
for (int i = 0; i < VulkanContext::MAX_INFLIGHT_FRAMES; i++) {
frame_[i].Destroy(vulkan_);

0 comments on commit b1e68c6

Please sign in to comment.