mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
i965: Drop pointless cast of texObj to intelObj.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
This commit is contained in:
parent
3033f80af5
commit
522fb01275
1 changed files with 1 additions and 3 deletions
|
|
@ -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 ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue