[Mesa-dev] [PATCH] swrast: Delete the unused 'slice' parameter

Anuj Phogat anuj.phogat at gmail.com
Fri Mar 11 23:16:35 UTC 2016


Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
---
 src/mesa/swrast/s_texture.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/swrast/s_texture.c b/src/mesa/swrast/s_texture.c
index 9ccd0e3..6ea7b6c 100644
--- a/src/mesa/swrast/s_texture.c
+++ b/src/mesa/swrast/s_texture.c
@@ -178,7 +178,7 @@ _swrast_free_texture_image_buffer(struct gl_context *ctx,
  */
 static void
 check_map_teximage(const struct gl_texture_image *texImage,
-                   GLuint slice, GLuint x, GLuint y, GLuint w, GLuint h)
+                   GLuint x, GLuint y, GLuint w, GLuint h)
 {
 
    if (texImage->TexObject->Target == GL_TEXTURE_1D)
@@ -216,7 +216,7 @@ _swrast_map_teximage(struct gl_context *ctx,
    GLint stride, texelSize;
    GLuint bw, bh;
 
-   check_map_teximage(texImage, slice, x, y, w, h);
+   check_map_teximage(texImage, x, y, w, h);
 
    if (!swImage->Buffer) {
       /* Either glTexImage was called with a NULL <pixels> argument or
-- 
2.5.0



More information about the mesa-dev mailing list