From 1fbf0d34ed7c3ba0014289b723a7311ccb854faa Mon Sep 17 00:00:00 2001 From: hyzboy Date: Mon, 6 May 2019 11:41:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8Avkformat=20stride=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E7=A7=BB=E5=88=B0VulkanAppFramework?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/Vulkan/VulkanAppFramework.h | 5 +++++ example/Vulkan/main.cpp | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/example/Vulkan/VulkanAppFramework.h b/example/Vulkan/VulkanAppFramework.h index ada7209d..be632f1f 100644 --- a/example/Vulkan/VulkanAppFramework.h +++ b/example/Vulkan/VulkanAppFramework.h @@ -43,6 +43,11 @@ public: virtual bool Init(int w,int h) { + #ifdef _DEBUG + if(!vulkan::CheckStrideBytesByFormat()) + return(false); + #endif// + InitNativeWindowSystem(); win=CreateRenderWindow(OS_TEXT("VulkanTest")); diff --git a/example/Vulkan/main.cpp b/example/Vulkan/main.cpp index 768373d7..cd00caa9 100644 --- a/example/Vulkan/main.cpp +++ b/example/Vulkan/main.cpp @@ -176,11 +176,6 @@ public: int main(int,char **) { - #ifdef _DEBUG - if(!vulkan::CheckStrideBytesByFormat()) - return 0xff; - #endif// - TestApp app; if(!app.Init())