diff options
author | Dave Airlie <[email protected]> | 2009-10-31 15:48:59 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2009-10-31 15:50:12 +1000 |
commit | 5cf7c8e2d58a877bfc786f866d4e0d363ddd22aa (patch) | |
tree | 7be8dfe4258dc1cfdf2964349ddd64f3cec6b192 /src/mesa/drivers | |
parent | 5e9f97f0eae5519b7273f0e17000b9d5152f3274 (diff) |
radeon: use _mesa_get_current_tex_unit
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_texstate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_texstate.c b/src/mesa/drivers/dri/radeon/radeon_texstate.c index 0fd9a138d6c..d6e8d4984a6 100644 --- a/src/mesa/drivers/dri/radeon/radeon_texstate.c +++ b/src/mesa/drivers/dri/radeon/radeon_texstate.c @@ -661,7 +661,7 @@ void radeonSetTexBuffer2(__DRIcontext *pDRICtx, GLint target, GLint glx_texture_ rmesa = pDRICtx->driverPrivate; rfb = dPriv->driverPrivate; - texUnit = &radeon->glCtx->Texture.Unit[radeon->glCtx->Texture.CurrentUnit]; + texUnit = _mesa_get_current_tex_unit(radeon->glCtx); texObj = _mesa_select_tex_object(radeon->glCtx, texUnit, target); texImage = _mesa_get_tex_image(radeon->glCtx, texObj, target, 0); |