mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-06 02:33:44 -04:00
renderer_vulkan: Fix multisample framebuffer creation
MSAA renderpasses require the "current" image as the main resolve target, and the MSAA image as the second attachment.
This commit is contained in:
parent
7eac2ec7af
commit
844939d372
1 changed files with 2 additions and 2 deletions
|
|
@ -1465,7 +1465,7 @@ vk::ImageView Surface::ImageView(ViewType view_type, Type type) noexcept {
|
|||
}
|
||||
|
||||
vk::Framebuffer Surface::Framebuffer(Type type) noexcept {
|
||||
type = Type::Current ? current : type;
|
||||
type = (type == Type::Current) ? current : type;
|
||||
auto& handle = handles[type];
|
||||
if (handle.framebuffer) {
|
||||
return handle.framebuffer;
|
||||
|
|
@ -1479,7 +1479,7 @@ vk::Framebuffer Surface::Framebuffer(Type type) noexcept {
|
|||
boost::container::small_vector<vk::ImageView, 2> image_views;
|
||||
if (sample_count > 1) {
|
||||
// Main surface + MSAA surface
|
||||
image_views.emplace_back(ImageView(ViewType::Mip0, type));
|
||||
image_views.emplace_back(ImageView(ViewType::Mip0, current));
|
||||
image_views.emplace_back(ImageView(ViewType::Mip0, Type::MultiSampled));
|
||||
} else {
|
||||
image_views.emplace_back(ImageView(ViewType::Mip0, type));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue