Permalink
Browse files

Fix integer overflow affecting very large draw calls

  • Loading branch information...
hrydgard committed Oct 26, 2017
1 parent 7312576 commit 5456194a696283bc325479e886d30b301c0b2feb
Showing with 2 additions and 2 deletions.
  1. +2 −2 ext/native/thin3d/VulkanRenderManager.h
@@ -39,7 +39,7 @@ struct VkRenderData {
uint32_t uboOffsets[3];
VkBuffer vbuffer;
VkDeviceSize voffset;
int count;
uint32_t count;
} draw;
struct {
VkPipelineLayout pipelineLayout;
@@ -50,7 +50,7 @@ struct VkRenderData {
VkDeviceSize voffset;
VkBuffer ibuffer;
VkDeviceSize ioffset;
int16_t count;
uint32_t count;
int16_t instances;
VkIndexType indexType;
} drawIndexed;

0 comments on commit 5456194

Please sign in to comment.