Browse Source

vulkan: fix linux build (attempt 2)

niki 2 years ago
parent
commit
faf36e5a92
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/modules/graphics/vulkan/Graphics.cpp

+ 4 - 4
src/modules/graphics/vulkan/Graphics.cpp

@@ -1080,16 +1080,16 @@ void Graphics::initDynamicState()
 	else
 	else
 		setScissor();
 		setScissor();
 
 
-	vkCmdSetStencilWriteMask(commandBuffers.at(currentFrame), VK_STENCIL_FACE_FRONT_AND_BACK, states.back().stencil.writeMask);
-	vkCmdSetStencilCompareMask(commandBuffers.at(currentFrame), VK_STENCIL_FACE_FRONT_AND_BACK, states.back().stencil.readMask);
-	vkCmdSetStencilReference(commandBuffers.at(currentFrame), VK_STENCIL_FACE_FRONT_AND_BACK, states.back().stencil.value);
+	vkCmdSetStencilWriteMask(commandBuffers.at(currentFrame), VK_STENCIL_FRONT_AND_BACK, states.back().stencil.writeMask);
+	vkCmdSetStencilCompareMask(commandBuffers.at(currentFrame), VK_STENCIL_FRONT_AND_BACK, states.back().stencil.readMask);
+	vkCmdSetStencilReference(commandBuffers.at(currentFrame), VK_STENCIL_FRONT_AND_BACK, states.back().stencil.value);
 
 
 #ifdef VK_EXT_extended_dynamic_state
 #ifdef VK_EXT_extended_dynamic_state
 	if (optionalDeviceFeatures.extendedDynamicState)
 	if (optionalDeviceFeatures.extendedDynamicState)
 	{
 	{
 		 vkCmdSetStencilOpEXT(
 		 vkCmdSetStencilOpEXT(
 			commandBuffers.at(currentFrame),
 			commandBuffers.at(currentFrame),
-			VK_STENCIL_FACE_FRONT_AND_BACK,
+			VK_STENCIL_FRONT_AND_BACK,
 			VK_STENCIL_OP_KEEP, Vulkan::getStencilOp(states.back().stencil.action),
 			VK_STENCIL_OP_KEEP, Vulkan::getStencilOp(states.back().stencil.action),
 			VK_STENCIL_OP_KEEP, Vulkan::getCompareOp(states.back().stencil.compare));
 			VK_STENCIL_OP_KEEP, Vulkan::getCompareOp(states.back().stencil.compare));