projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26707ab
)
main: Remove unused function _mesa_shader_index_to_type().
author
Paul Berry
<stereotype441@gmail.com>
Tue, 17 Dec 2013 18:07:24 +0000
(10:07 -0800)
committer
Paul Berry
<stereotype441@gmail.com>
Mon, 30 Dec 2013 19:21:14 +0000
(11:21 -0800)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/shaderobj.h
patch
|
blob
|
history
diff --git
a/src/mesa/main/shaderobj.h
b/src/mesa/main/shaderobj.h
index aff178f2690fa1a74064a60eee712005a872b405..155058d71871c4d83bdf116b28f72efd54620f10 100644
(file)
--- 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