diff options
author | Daniel Borca <[email protected]> | 2003-10-14 14:56:45 +0000 |
---|---|---|
committer | Daniel Borca <[email protected]> | 2003-10-14 14:56:45 +0000 |
commit | 0219d1168e14efc3277822f64aa3d822b7bf5bba (patch) | |
tree | 1b7f9b3f6db524d3d17a7fceca357681bcf2e967 /src/mesa/drivers/glide/fxddtex.c | |
parent | 4b6f6e1b3d50a972fa82ea90e1409f28eda26550 (diff) |
minor fixes + doc update
Diffstat (limited to 'src/mesa/drivers/glide/fxddtex.c')
-rw-r--r-- | src/mesa/drivers/glide/fxddtex.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mesa/drivers/glide/fxddtex.c b/src/mesa/drivers/glide/fxddtex.c index 77c7ef3c9e9..346d3625b01 100644 --- a/src/mesa/drivers/glide/fxddtex.c +++ b/src/mesa/drivers/glide/fxddtex.c @@ -1,4 +1,4 @@ -/* $Id: fxddtex.c,v 1.50 2003/10/13 11:14:58 dborca Exp $ */ +/* $Id: fxddtex.c,v 1.51 2003/10/14 14:56:45 dborca Exp $ */ /* * Mesa 3-D graphics library @@ -354,6 +354,16 @@ fxDDTexDel(GLcontext * ctx, struct gl_texture_object *tObj) tObj->DriverData = NULL; } +/* + * Return true if texture is resident, false otherwise. + */ +GLboolean +fxDDIsTextureResident(GLcontext *ctx, struct gl_texture_object *tObj) +{ + tfxTexInfo *ti = fxTMGetTexInfo(tObj); + return (ti && ti->isInTM); +} + /* |