mesa: remove unused layered parameter from validate_bind_image_texture()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 23 May 2017 21:45:46 +0000 (23:45 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 29 May 2017 08:11:36 +0000 (10:11 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/main/shaderimage.c

index 45b72c9b4ffe0a629d43d996f5950b0bb15c8b6f..0b8cfe2468a812a6483285c546aaa19f12f07fbe 100644 (file)
@@ -529,8 +529,8 @@ _mesa_is_image_unit_valid(struct gl_context *ctx, struct gl_image_unit *u)
 
 static GLboolean
 validate_bind_image_texture(struct gl_context *ctx, GLuint unit,
-                            GLuint texture, GLint level, GLboolean layered,
-                            GLint layer, GLenum access, GLenum format)
+                            GLuint texture, GLint level, GLint layer,
+                            GLenum access, GLenum format)
 {
    assert(ctx->Const.MaxImageUnits <= MAX_IMAGE_UNITS);
 
@@ -572,8 +572,8 @@ _mesa_BindImageTexture(GLuint unit, GLuint texture, GLint level,
    GET_CURRENT_CONTEXT(ctx);
    struct gl_image_unit *u;
 
-   if (!validate_bind_image_texture(ctx, unit, texture, level,
-                                    layered, layer, access, format))
+   if (!validate_bind_image_texture(ctx, unit, texture, level, layer, access,
+                                    format))
       return;
 
    u = &ctx->ImageUnits[unit];