radeon: use _mesa_get_current_tex_unit
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user