[spline/bezier]Fix to avoid crashing when activated hardware tessellation with dx9 and vulkan.

This commit is contained in:
xebra authored and Henrik Rydgård committed 2017-01-23 14:12:03 +01:00
1 parent 334afbd1ae
commit deea258383
5 files changed
+41

No files matched your search

+8
View File
@@ -92,6 +92,8 @@ DrawEngineVulkan::DrawEngineVulkan(VulkanContext *vulkan)
indexGen.Setup(decIndex);
InitDeviceObjects();
tessDataTransfer = new TessellationDataTransferVulkan();
}
void DrawEngineVulkan::InitDeviceObjects() {
@@ -194,6 +196,8 @@ DrawEngineVulkan::~DrawEngineVulkan() {
FreeMemoryPages(transformedExpanded, 3 * TRANSFORMED_VERTEX_BUFFER_SIZE);
DestroyDeviceObjects();
delete tessDataTransfer;
}
void DrawEngineVulkan::FrameData::Destroy(VulkanContext *vulkan) {
@@ -901,3 +905,7 @@ void DrawEngineVulkan::Resized() {
bool DrawEngineVulkan::IsCodePtrVertexDecoder(const u8 *ptr) const {
return decJitCache_->IsInSpace(ptr);
}
void DrawEngineVulkan::TessellationDataTransferVulkan::SendDataToShader(const float * pos, const float * tex, const float * col, int size, bool hasColor, bool hasTexCoords)
{
}