OSDN Git Service

mesa: Remove redundant _mesa_has_shader_subroutine
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 19 Aug 2016 12:44:01 +0000 (13:44 +0100)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 26 Aug 2016 22:03:14 +0000 (15:03 -0700)
commitaa228eb1a69b2b367583878f440423229d4d1ac3
tree76da9cf87476857b23f75eedcd469dc77141fc0f
parent0115f356eec22b30a78847ac47caebae4c436b68
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 <ian.d.romanick@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/mesa/main/context.h
src/mesa/main/program_resource.c
src/mesa/main/shaderapi.c