Browse Source

Vulkan: Fixing depth tests

Panagiotis Christopoulos Charitos 9 years ago
parent
commit
39125ee733
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/anki/gr/vulkan/CommandBufferImpl.inl.h

+ 2 - 0
include/anki/gr/vulkan/CommandBufferImpl.inl.h

@@ -23,6 +23,8 @@ inline void CommandBufferImpl::setViewport(
 	s.y = miny;
 	s.width = maxx - minx;
 	s.height = maxy - miny;
+	s.minDepth = 0.0;
+	s.maxDepth = 1.0;
 	vkCmdSetViewport(m_handle, 0, 1, &s);
 
 	VkRect2D scissor = {};