summaryrefslogtreecommitdiff
path: root/cube-tex.c
diff options
context:
space:
mode:
authorRob Clark <robdclark@chromium.org>2020-02-29 11:16:43 -0800
committerRob Clark <robdclark@chromium.org>2020-03-07 09:22:17 -0800
commit27d4de2bb9bfd9c425848c78d729ba27f9408041 (patch)
treea24b18a3e42fbddce55d9fbc91076a1c62443eec /cube-tex.c
parentf20dc5e295a8605bcbfacbbe487e5452a9e7e312 (diff)
downloadkmscube-27d4de2bb9bfd9c425848c78d729ba27f9408041.tar.gz
add shadertoy mode
Doesn't handle shadertoy shaders which use textures for inputs. That probably wouldn't be straightforward without using the web API to fetch and introspect the shader. But that sounds like a lot more work.
Diffstat (limited to 'cube-tex.c')
-rw-r--r--cube-tex.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cube-tex.c b/cube-tex.c
index 2714084..c8f24c0 100644
--- a/cube-tex.c
+++ b/cube-tex.c
@@ -516,8 +516,7 @@ static int init_tex(enum mode mode)
return init_tex_nv12_2img();
case NV12_1IMG:
return init_tex_nv12_1img();
- case SMOOTH:
- case VIDEO:
+ default:
assert(!"unreachable");
return -1;
}