From 7eb311e826fc2f2dab028c249e4b45a4300b41e8 Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Fri, 29 Apr 2016 16:03:10 -0600 Subject: demos: Change tri to not require shaderClipDistance Change-Id: Iaa1afa361d29022388005c173054f714c64fb7d7 --- demos/tri.c | 8 -------- demos/tri.vert | 3 +++ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/demos/tri.c b/demos/tri.c index 847655fa..1c80a22b 100644 --- a/demos/tri.c +++ b/demos/tri.c @@ -2164,14 +2164,6 @@ static void demo_init_vk(struct demo *demo) { VkPhysicalDeviceFeatures features; vkGetPhysicalDeviceFeatures(demo->gpu, &features); - //TODO: Enable this -#ifndef __ANDROID__ - if (!features.shaderClipDistance) { - ERR_EXIT("Required device feature `shaderClipDistance` not supported\n", - "GetPhysicalDeviceFeatures failure"); - } -#endif - // Graphics queue and MemMgr queue can be separate. // TODO: Add support for separate queues, including synchronization, // and appropriate tracking for QueueSubmit diff --git a/demos/tri.vert b/demos/tri.vert index 92d6436e..d4788d81 100644 --- a/demos/tri.vert +++ b/demos/tri.vert @@ -24,6 +24,9 @@ layout (location = 0) in vec4 pos; layout (location = 1) in vec2 attr; layout (location = 0) out vec2 texcoord; +out gl_PerVertex { + vec4 gl_Position; +}; void main() { texcoord = attr; gl_Position = pos; -- cgit v1.2.3