aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/textureview.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-01-02 16:56:12 -0700
committerBrian Paul <[email protected]>2015-01-05 13:50:55 -0700
commitf262ed6e3dd9d447355ea2490e84c0a6b0fd1ddb (patch)
treede3fe1cf53f2e6fe38a35b1b9131cba753cd4cd1 /src/mesa/main/textureview.c
parent05279fa5636bc1354c34ef043183d56f730b7f8e (diff)
mesa: remove unused ctx parameter for _mesa_select_tex_image()
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/textureview.c')
-rw-r--r--src/mesa/main/textureview.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/main/textureview.c b/src/mesa/main/textureview.c
index 6e86a9a4403..cd87a27d2db 100644
--- a/src/mesa/main/textureview.c
+++ b/src/mesa/main/textureview.c
@@ -355,7 +355,7 @@ _mesa_set_texture_view_state(struct gl_context *ctx,
struct gl_texture_image *texImage;
/* Get a reference to what will become this View's base level */
- texImage = _mesa_select_tex_image(ctx, texObj, target, 0);
+ texImage = _mesa_select_tex_image(texObj, target, 0);
/* When an immutable texture is created via glTexStorage or glTexImageMultisample,
* TEXTURE_IMMUTABLE_FORMAT becomes TRUE.
@@ -527,8 +527,7 @@ _mesa_TextureView(GLuint texture, GLenum target, GLuint origtexture,
faceTarget = GL_TEXTURE_CUBE_MAP_POSITIVE_X + minlayer;
/* Get a reference to what will become this View's base level */
- origTexImage = _mesa_select_tex_image(ctx, origTexObj,
- faceTarget, minlevel);
+ origTexImage = _mesa_select_tex_image(origTexObj, faceTarget, minlevel);
width = origTexImage->Width;
height = origTexImage->Height;
depth = origTexImage->Depth;