Merge pull request #832 from per-mathisen-arm/master

Add support for rendering with the headless extension
This commit is contained in:
Sascha Willems 2021-06-05 15:10:30 +02:00 committed by GitHub
commit 0887881eac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 68 additions and 5 deletions

View file

@ -1188,6 +1188,7 @@ int main(const int argc, const char *argv[])
// Linux entry point
VulkanExample *vulkanExample;
#if defined(VK_USE_PLATFORM_XCB_KHR)
static void handleEvent(const xcb_generic_event_t *event)
{
if (vulkanExample != NULL)
@ -1195,6 +1196,11 @@ static void handleEvent(const xcb_generic_event_t *event)
vulkanExample->handleEvent(event);
}
}
#else
static void handleEvent()
{
}
#endif
int main(const int argc, const char *argv[])
{
for (size_t i = 0; i < argc; i++) { VulkanExample::args.push_back(argv[i]); };