diff options
author | Eric Anholt <[email protected]> | 2014-04-25 11:47:13 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-05-01 15:12:26 -0700 |
commit | 522fb01275f7f05992c0949848031fc349c43724 (patch) | |
tree | 06eee15d2e800788b358ae8281a6f22e9e7c2961 /src/mesa/drivers/dri | |
parent | 3033f80af5dbc0858907df3c41ccf7b9de8a01a4 (diff) |
i965: Drop pointless cast of texObj to intelObj.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_tex_image.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_tex_image.c b/src/mesa/drivers/dri/i965/intel_tex_image.c index ee02e689782..c225e4e028b 100644 --- a/src/mesa/drivers/dri/i965/intel_tex_image.c +++ b/src/mesa/drivers/dri/i965/intel_tex_image.c @@ -273,7 +273,6 @@ intelSetTexBuffer2(__DRIcontext *pDRICtx, GLint target, struct gl_framebuffer *fb = dPriv->driverPrivate; struct brw_context *brw = pDRICtx->driverPrivate; struct gl_context *ctx = &brw->ctx; - struct intel_texture_object *intelObj; struct intel_renderbuffer *rb; struct gl_texture_object *texObj; struct gl_texture_image *texImage; @@ -281,9 +280,8 @@ intelSetTexBuffer2(__DRIcontext *pDRICtx, GLint target, mesa_format texFormat = MESA_FORMAT_NONE; texObj = _mesa_get_current_tex_object(ctx, target); - intelObj = intel_texture_object(texObj); - if (!intelObj) + if (!texObj) return; if (dPriv->lastStamp != dPriv->dri2.stamp || |