mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-12 19:50:33 +01:00
radeon: use _mesa_get_current_tex_unit
This commit is contained in:
parent
5e9f97f0ea
commit
5cf7c8e2d5
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue