Disable UI overlay for triangle sample

Fixes validation layer errors
Refs #876
This commit is contained in:
Sascha Willems 2021-10-24 13:19:05 +02:00
parent a5022d6d5f
commit e79634e4da

View file

@ -114,6 +114,8 @@ public:
VulkanExample() : VulkanExampleBase(ENABLE_VALIDATION) VulkanExample() : VulkanExampleBase(ENABLE_VALIDATION)
{ {
title = "Vulkan Example - Basic indexed triangle"; title = "Vulkan Example - Basic indexed triangle";
// To keep things simple, we don't use the UI overlay
settings.overlay = false;
// Setup a default look-at camera // Setup a default look-at camera
camera.type = Camera::CameraType::lookat; camera.type = Camera::CameraType::lookat;
camera.setPosition(glm::vec3(0.0f, 0.0f, -2.5f)); camera.setPosition(glm::vec3(0.0f, 0.0f, -2.5f));