[spline/bezier]Handle deleting sampler of TessellationDataTransferVulkan.

This commit is contained in:
xebra 2017-02-26 00:27:25 +09:00
parent f0606bd1c9
commit 6022b40346

View file

@ -259,6 +259,8 @@ private:
~TessellationDataTransferVulkan() {
for (int i = 0; i < 3; i++)
delete data_tex[i];
vulkan->Delete().QueueDeleteSampler(sampler);
}
void SendDataToShader(const float *pos, const float *tex, const float *col, int size, bool hasColor, bool hasTexCoords) override;
VulkanTexture *GetTexture(int i) const { return data_tex[i]; }