Commit 9530ded5 authored by Laszlo Agocs's avatar Laszlo Agocs

Fix shadertools examples build

parent 28291ac1
......@@ -63,7 +63,7 @@
#include "renderwindow.h"
#if QT_CONFIG(vulkan)
#include "trianglerenderer.h"
#include "vulkantrianglerenderer.h"
class VulkanWindow : public QVulkanWindow
{
......
......@@ -14,6 +14,8 @@ qtConfig(vulkan) {
HEADERS += ../shared/vulkantrianglerenderer.h
}
INCLUDEPATH += ../shared
RESOURCES = tri.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/shadertools/oneshaderthreecontexts_prebaked
......
......@@ -68,7 +68,7 @@
#include "renderwindow.h"
#if QT_CONFIG(vulkan)
#include "trianglerenderer.h"
#include "vulkantrianglerenderer.h"
class VulkanWindow : public QVulkanWindow
{
......
......@@ -14,6 +14,8 @@ qtConfig(vulkan) {
HEADERS += ../shared/vulkantrianglerenderer.h
}
INCLUDEPATH += ../shared
RESOURCES = tri.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/shadertools/oneshaderthreecontexts_runtime
......
......@@ -436,7 +436,7 @@ void TriangleRenderer::startNextFrame()
VkCommandBuffer cb = m_window->currentCommandBuffer();
const QSize sz = m_window->swapChainImageSize();
VkClearColorValue clearColor = { 0, 0, 0, 1 };
VkClearColorValue clearColor = { { 0, 0, 0, 1 } };
VkClearDepthStencilValue clearDS = { 1, 0 };
VkClearValue clearValues[3];
memset(clearValues, 0, sizeof(clearValues));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment