mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-01 20:08:31 +02:00
radeon/r200: fix set tex offset functions
This commit is contained in:
parent
ed8340192e
commit
f363a97d25
2 changed files with 2 additions and 6 deletions
|
|
@ -733,13 +733,11 @@ void r200SetTexOffset(__DRIcontext * pDRICtx, GLint texname,
|
|||
r200ContextPtr rmesa = pDRICtx->driverPrivate;
|
||||
struct gl_texture_object *tObj =
|
||||
_mesa_lookup_texture(rmesa->radeon.glCtx, texname);
|
||||
radeonTexObjPtr t;
|
||||
radeonTexObjPtr t = radeon_tex_obj(tObj);
|
||||
|
||||
if (!tObj)
|
||||
return;
|
||||
|
||||
t = (radeonTexObjPtr) tObj->DriverData;
|
||||
|
||||
t->image_override = GL_TRUE;
|
||||
|
||||
if (!offset)
|
||||
|
|
|
|||
|
|
@ -605,13 +605,11 @@ void radeonSetTexOffset(__DRIcontext * pDRICtx, GLint texname,
|
|||
r100ContextPtr rmesa = pDRICtx->driverPrivate;
|
||||
struct gl_texture_object *tObj =
|
||||
_mesa_lookup_texture(rmesa->radeon.glCtx, texname);
|
||||
radeonTexObjPtr t;
|
||||
radeonTexObjPtr t = radeon_tex_obj(tObj);
|
||||
|
||||
if (tObj == NULL)
|
||||
return;
|
||||
|
||||
t = (radeonTexObjPtr) tObj->DriverData;
|
||||
|
||||
t->image_override = GL_TRUE;
|
||||
|
||||
if (!offset)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue