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