mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-05 09:25:05 +01:00
Restore previous cullMode when cullFace is enabled
This commit is contained in:
parent
15e9fa1c80
commit
5b97b87503
@ -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 = {};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user