pica_to_vk: Set cull mode correctly

This commit is contained in:
GPUCode
2022-09-25 21:51:30 +03:00
parent 40db7b90fa
commit 1bf1217a18
2 changed files with 2 additions and 3 deletions

View File

@ -250,7 +250,7 @@ inline vk::CullModeFlags CullMode(Pica::RasterizerRegs::CullMode mode) {
return vk::CullModeFlagBits::eNone;
case Pica::RasterizerRegs::CullMode::KeepClockWise:
case Pica::RasterizerRegs::CullMode::KeepCounterClockWise:
return vk::CullModeFlagBits::eNone;
return vk::CullModeFlagBits::eBack;
}
}

View File

@ -1046,8 +1046,7 @@ void RendererVulkan::SwapBuffers() {
runtime.OnSlotSwitch(scheduler.GetCurrentSlotIndex());
// When the command buffer switches, all state becomes undefined.
// This is problematic when using dynamic states, so set all
// states here
// This is problematic with dynamic states, so set all states here
if (instance.IsExtendedDynamicStateSupported()) {
rasterizer->SyncFixedState();
}