From 27d4de2bb9bfd9c425848c78d729ba27f9408041 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sat, 29 Feb 2020 11:16:43 -0800 Subject: 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. --- cube-tex.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cube-tex.c') 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; } -- cgit v1.2.1