demos: Change tri to not require shaderClipDistance
authorJon Ashburn <jon@lunarg.com>
Fri, 29 Apr 2016 22:03:10 +0000 (16:03 -0600)
committerJon Ashburn <jon@lunarg.com>
Fri, 29 Apr 2016 22:28:33 +0000 (16:28 -0600)
Change-Id: Iaa1afa361d29022388005c173054f714c64fb7d7

demos/tri.c
demos/tri.vert

index 847655f..1c80a22 100644 (file)
@@ -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
index 92d6436..d4788d8 100644 (file)
@@ -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;