radeon/r200: fix set tex offset functions

This commit is contained in:
Dave Airlie 2009-02-13 23:29:27 +10:00
parent ed8340192e
commit f363a97d25
2 changed files with 2 additions and 6 deletions

View file

@ -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)

View file

@ -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)