Assorted cleanups. Don't assert on no clear mask.

This commit is contained in:
Henrik Rydgård committed 2018-04-06 23:29:44 +02:00
1 parent 86966684d4
commit ca0fb77080
8 files changed
+17 -19

No files matched your search

@@ -614,6 +614,8 @@ bool VulkanRenderManager::InitDepthStencilBuffer(VkCommandBuffer cmd) {
void VulkanRenderManager::Clear(uint32_t clearColor, float clearZ, int clearStencil, int clearMask) {
_dbg_assert_(G3D, curRenderStep_ && curRenderStep_->stepType == VKRStepType::RENDER);
if (!clearMask)
return;
// If this is the first drawing command, merge it into the pass.
if (curRenderStep_->render.numDraws == 0) {
curRenderStep_->render.clearColor = clearColor;