Bump up maximum image attachments on framebuffer by 1 (8 colour + depth)

This commit is contained in:
baldurk
2016-02-07 18:51:22 +01:00
parent b4a9e58a87
commit 1d15a4b2ca
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -806,7 +806,7 @@ struct VkResourceRecord : public ResourceRecord
VkResourceRecord *bakedCommands;
static const int MaxImageAttachments = 8;
static const int MaxImageAttachments = 9; // 8 Colour and 1 Depth
// pointer to either the pool this item is allocated from, or the children allocated
// from this pool. Protected by the chunk lock
@@ -495,7 +495,7 @@ VkResult WrappedVulkan::vkCreateFramebuffer(
record->AddChunk(chunk);
record->imageAttachments = new VkResourceRecord*[VkResourceRecord::MaxImageAttachments];
RDCASSERT(pCreateInfo->attachmentCount < VkResourceRecord::MaxImageAttachments);
RDCASSERT(pCreateInfo->attachmentCount <= VkResourceRecord::MaxImageAttachments);
RDCEraseMem(record->imageAttachments, sizeof(ResourceId)*VkResourceRecord::MaxImageAttachments);