Restore previous cullMode when cullFace is enabled

This commit is contained in:
Billy Laws 2022-05-10 18:31:32 +01:00
parent 15e9fa1c80
commit 5b97b87503

View File

@ -1306,7 +1306,9 @@ namespace skyline::gpu::interconnect {
void SetCullFaceEnabled(bool enabled) {
cullFaceEnabled = enabled;
if (!enabled)
if (enabled)
rasterizerState.get<vk::PipelineRasterizationStateCreateInfo>().cullMode = cullMode;
else
rasterizerState.get<vk::PipelineRasterizationStateCreateInfo>().cullMode = {};
}