From fd10f0a017ec6b214be36d864b8827859adc6ebd Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Thu, 9 Aug 2018 10:25:22 +0100 Subject: [PATCH] Revert "renderer: check for shader_text validity" This reverts commit 3193c2cbabf440dc8d0a6d59ee630e7ad0813d67. This commit broke all shaders. Signed-off-by: Jakob Bornecrantz --- src/vrend_renderer.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index ebeb9d1..384925c 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -2929,9 +2929,6 @@ int vrend_create_shader(struct vrend_context *ctx, bool finished = false; int ret; - if (pkt_length == 0 || shd_text[pkt_length - 1] != '\0') - return EINVAL; - if (type > PIPE_SHADER_COMPUTE) return EINVAL;