diff options
author | Ian Romanick <[email protected]> | 2016-08-19 13:44:01 +0100 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-08-26 15:03:14 -0700 |
commit | aa228eb1a69b2b367583878f440423229d4d1ac3 (patch) | |
tree | 76da9cf87476857b23f75eedcd469dc77141fc0f /src/mesa/main/context.h | |
parent | 0115f356eec22b30a78847ac47caebae4c436b68 (diff) |
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 <[email protected]>
Reviewed-by: Nanley Chery <[email protected]>
Diffstat (limited to 'src/mesa/main/context.h')
-rw-r--r-- | src/mesa/main/context.h | 10 |
1 files changed, 0 insertions, 10 deletions
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 @@ -339,16 +339,6 @@ _mesa_has_compute_shaders(const struct gl_context *ctx) } /** - * 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. */ static inline GLboolean |