From aa228eb1a69b2b367583878f440423229d4d1ac3 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 19 Aug 2016 13:44:01 +0100 Subject: mesa: Remove redundant _mesa_has_shader_subroutine The checks in _mesa_has_shader_subroutine are slightly different than _mesa_has_ARB_shader_subroutine, but they're not different in a way that matters. The only way to have ctx->Version >= 40 is if ctx->Extensions.ARB_shader_subroutine is set. Signed-off-by: Ian Romanick Reviewed-by: Nanley Chery --- src/mesa/main/context.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/mesa/main/context.h') diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h index 187138897be..9a609dd61ff 100644 --- a/src/mesa/main/context.h +++ b/src/mesa/main/context.h @@ -338,16 +338,6 @@ _mesa_has_compute_shaders(const struct gl_context *ctx) (ctx->API == API_OPENGLES2 && ctx->Version >= 31); } -/** - * Checks if the context supports shader subroutines. - */ -static inline bool -_mesa_has_shader_subroutine(const struct gl_context *ctx) -{ - return ctx->API == API_OPENGL_CORE && - (ctx->Version >= 40 || ctx->Extensions.ARB_shader_subroutine); -} - /** * Checks if the context supports tessellation. */ -- cgit v1.2.3