[Mesa-dev] [PATCH 06/18] i965: Drop pointless cast of texObj to intelObj.
Kristian Høgsberg
krh at bitplanet.net
Tue Apr 29 21:48:21 PDT 2014
On Tue, Apr 29, 2014 at 4:34 PM, Eric Anholt <eric at anholt.net> wrote:
Reviewed-by: Kristian Høgsberg <krh at bitplanet.net>
> ---
> src/mesa/drivers/dri/i965/intel_tex_image.c | 4 +---
> 1 file changed, 1 insertion(+), 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 ee02e68..c225e4e 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 ||
> --
> 1.9.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list