summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/teximage.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2016-02-11 07:54:27 -0700
committerBrian Paul <brianp@vmware.com>2016-02-12 15:10:37 -0700
commitd73f5a3133688bbae955feb517ea6bd1cd8782a3 (patch)
tree6497ade3420de5c7f17a40a8694b4b612ccbaeca /src/mesa/main/teximage.c
parent6a08673c5eb4d55522888c3c2fd6af6946ce1264 (diff)
downloadexternal_mesa3d-d73f5a3133688bbae955feb517ea6bd1cd8782a3.zip
external_mesa3d-d73f5a3133688bbae955feb517ea6bd1cd8782a3.tar.gz
external_mesa3d-d73f5a3133688bbae955feb517ea6bd1cd8782a3.tar.bz2
mesa: make _mesa_tex_target_to_face() an inline function
Reviewed-by: Roland Scheidegger <sroland@vmware.com> Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r--src/mesa/main/teximage.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 68a9752..57765d7 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -116,20 +116,6 @@ adjust_for_oes_float_texture(GLenum format, GLenum type)
return format;
}
-/**
- * For cube map faces, return a face index in [0,5].
- * For other targets return 0;
- */
-GLuint
-_mesa_tex_target_to_face(GLenum target)
-{
- if (_mesa_is_cube_face(target))
- return (GLuint) target - (GLuint) GL_TEXTURE_CUBE_MAP_POSITIVE_X;
- else
- return 0;
-}
-
-
/**
* Install gl_texture_image in a gl_texture_object according to the target