Fix the previous scissor state bleeding when drawing the RmlUi output onto the swapchain buffer

This commit is contained in:
Mr-Wiseguy 2025-04-14 03:13:35 -04:00
parent 67e1ddb70b
commit e44abf27cb

View file

@ -638,6 +638,7 @@ public:
list->setGraphicsPipelineLayout(layout_.get()); list->setGraphicsPipelineLayout(layout_.get());
list->setGraphicsDescriptorSet(sampler_set_.get(), 0); list->setGraphicsDescriptorSet(sampler_set_.get(), 0);
list->setGraphicsDescriptorSet(screen_descriptor_set_.get(), 1); list->setGraphicsDescriptorSet(screen_descriptor_set_.get(), 1);
list->setScissors(RT64::RenderRect{ 0, 0, window_width_, window_height_ });
RT64::RenderVertexBufferView vertex_view(screen_vertex_buffer_.get(), screen_vertex_buffer_size_); RT64::RenderVertexBufferView vertex_view(screen_vertex_buffer_.get(), screen_vertex_buffer_size_);
list->setVertexBuffers(0, &vertex_view, 1, &vertex_slot_); list->setVertexBuffers(0, &vertex_view, 1, &vertex_slot_);