[Mesa-dev] [PATCH 2/2] mesa: remove _mesa_is_array_texture

Alejandro PiƱeiro apinheiro at igalia.com
Sat Dec 5 10:47:24 PST 2015


_mesa_tex_target_is_array provides the same functionality and
is older.
---
 src/mesa/main/teximage.c | 23 -----------------------
 src/mesa/main/teximage.h |  3 ---
 2 files changed, 26 deletions(-)

diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 60fc7cc..f7fac37 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -234,29 +234,6 @@ _mesa_is_proxy_texture(GLenum target)
    return GL_FALSE;
 }
 
-
-/**
- * Test if a target is an array target.
- *
- * \param target texture target.
- *
- * \return true if the target is an array target, false otherwise.
- */
-bool
-_mesa_is_array_texture(GLenum target)
-{
-   switch (target) {
-   case GL_TEXTURE_1D_ARRAY:
-   case GL_TEXTURE_2D_ARRAY:
-   case GL_TEXTURE_CUBE_MAP_ARRAY:
-   case GL_TEXTURE_2D_MULTISAMPLE_ARRAY:
-      return true;
-   default:
-      return false;
-   };
-}
-
-
 /**
  * Return the proxy target which corresponds to the given texture target
  */
diff --git a/src/mesa/main/teximage.h b/src/mesa/main/teximage.h
index 5df36c5..04ad329 100644
--- a/src/mesa/main/teximage.h
+++ b/src/mesa/main/teximage.h
@@ -62,9 +62,6 @@ _mesa_is_zero_size_texture(const struct gl_texture_image *texImage)
 extern GLboolean
 _mesa_is_proxy_texture(GLenum target);
 
-extern bool
-_mesa_is_array_texture(GLenum target);
-
 extern struct gl_texture_image *
 _mesa_new_texture_image( struct gl_context *ctx );
 
-- 
2.1.4



More information about the mesa-dev mailing list