parent
5e552c0fea
commit
1f42dbda61
1 changed files with 8 additions and 5 deletions
|
|
@ -304,7 +304,9 @@ void VulkanExampleBase::renderLoop()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
renderFrame();
|
if (!IsIconic(window)) {
|
||||||
|
renderFrame();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#elif defined(VK_USE_PLATFORM_ANDROID_KHR)
|
#elif defined(VK_USE_PLATFORM_ANDROID_KHR)
|
||||||
while (1)
|
while (1)
|
||||||
|
|
@ -2172,12 +2174,13 @@ void VulkanExampleBase::windowResize()
|
||||||
|
|
||||||
vkDeviceWaitIdle(device);
|
vkDeviceWaitIdle(device);
|
||||||
|
|
||||||
if (settings.overlay) {
|
if ((width > 0.0f) && (height > 0.0f)) {
|
||||||
UIOverlay->resize(width, height, frameBuffers);
|
if (settings.overlay) {
|
||||||
|
UIOverlay->resize(width, height, frameBuffers);
|
||||||
|
}
|
||||||
|
camera.updateAspectRatio((float)width / (float)height);
|
||||||
}
|
}
|
||||||
|
|
||||||
camera.updateAspectRatio((float)width / (float)height);
|
|
||||||
|
|
||||||
// Notify derived class
|
// Notify derived class
|
||||||
windowResized();
|
windowResized();
|
||||||
viewChanged();
|
viewChanged();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue