temporarily disable android secondary display rendering skip

This commit is contained in:
KojoZero 2026-06-01 19:58:00 -07:00
parent 5a5b2ef858
commit 9a152e894a
2 changed files with 10 additions and 10 deletions

View file

@ -2112,9 +2112,9 @@ void RendererVulkan::DrawScreens(Frame* frame, const Layout::FramebufferLayout&
if (!Settings::values.swap_screen.GetValue()) {
if (usingAndroid){
// Change this block to conditionally display based on layout of primary and secondary screen
if (isSecondaryWindow){
return;
} else {
// if (isSecondaryWindow){
// return;
// } else {
drawingPrimaryScreen = true;
DrawTopScreen(layout, top_screen);
draw_info.layer = 0;
@ -2122,7 +2122,7 @@ void RendererVulkan::DrawScreens(Frame* frame, const Layout::FramebufferLayout&
usingTopOpacity = false;
clearingColorAttachment = false;
DrawBottomScreen(layout, bottom_screen);
}
// }
} else {
if (isSecondaryWindow) {
drawingPrimaryScreen = true;
@ -2135,9 +2135,9 @@ void RendererVulkan::DrawScreens(Frame* frame, const Layout::FramebufferLayout&
} else {
if (usingAndroid){
// Change this block to conditionally display based on layout of primary and secondary screen
if (isSecondaryWindow){
return;
} else {
// if (isSecondaryWindow){
// return;
// } else {
drawingPrimaryScreen = true;
DrawBottomScreen(layout, bottom_screen);
draw_info.layer = 0;
@ -2145,7 +2145,7 @@ void RendererVulkan::DrawScreens(Frame* frame, const Layout::FramebufferLayout&
usingTopOpacity = true;
clearingColorAttachment = false;
DrawTopScreen(layout, top_screen);
}
// }
} else {
if (isSecondaryWindow) {
drawingPrimaryScreen = true;

View file

@ -490,7 +490,7 @@ void PresentWindow::CopyToSwapchain(Frame* frame) {
vk::RenderPass PresentWindow::CreateRenderpass() {
const vk::AttachmentReference color_ref = {
.attachment = 0,
.layout = vk::ImageLayout::eGeneral,
.layout = vk::ImageLayout::eColorAttachmentOptimal,
};
const vk::SubpassDescription subpass = {
@ -537,7 +537,7 @@ vk::RenderPass PresentWindow::CreateRenderpass() {
vk::RenderPass PresentWindow::CreateLoadRenderpass() {
const vk::AttachmentReference color_ref = {
.attachment = 0,
.layout = vk::ImageLayout::eGeneral,
.layout = vk::ImageLayout::eColorAttachmentOptimal,
};
const vk::SubpassDescription subpass = {