mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
GPU: Avoid a missing virtual destructor warning.
This commit is contained in:
parent
571ea0eec5
commit
b1e68c653c
3 changed files with 5 additions and 1 deletions
|
@ -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_);
|
||||
|
|
Loading…
Add table
Reference in a new issue