diff options
author | Paul Berry <[email protected]> | 2013-12-17 10:07:24 -0800 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-12-30 11:21:14 -0800 |
commit | 89c35c59a4421db863ba70b28a546b294f7b1ba9 (patch) | |
tree | ef84b02b03c803d26873bff68fc87b25fb1cb444 /src/mesa/main | |
parent | 26707abe5635e99814603a0f4895865e977cf267 (diff) |
main: Remove unused function _mesa_shader_index_to_type().
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/shaderobj.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/mesa/main/shaderobj.h b/src/mesa/main/shaderobj.h index aff178f2690..155058d7187 100644 --- a/src/mesa/main/shaderobj.h +++ b/src/mesa/main/shaderobj.h @@ -118,21 +118,6 @@ _mesa_shader_type_to_index(GLenum v) } -static inline GLenum -_mesa_shader_index_to_type(GLuint i) -{ - static const GLenum enums[MESA_SHADER_TYPES] = { - GL_VERTEX_SHADER, - GL_GEOMETRY_SHADER, - GL_FRAGMENT_SHADER - }; - if (i >= MESA_SHADER_TYPES) - return 0; - else - return enums[i]; -} - - #ifdef __cplusplus } #endif |