summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/trace/tr_texture.h
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2009-03-11 17:37:38 +0100
committerJakob Bornecrantz <[email protected]>2009-03-11 22:47:14 +0100
commit5d418f7155cfb7bf9a14e6b322831a6e6b6ad710 (patch)
tree156b2e0454300319a4d8c6b64bc836118164a4d8 /src/gallium/drivers/trace/tr_texture.h
parent81569c2f697586daab01486ec1da28f0a03b5c6a (diff)
trace: Fixup trace a bit
Diffstat (limited to 'src/gallium/drivers/trace/tr_texture.h')
-rw-r--r--src/gallium/drivers/trace/tr_texture.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/trace/tr_texture.h b/src/gallium/drivers/trace/tr_texture.h
index 168cefd53d6..67433b507d4 100644
--- a/src/gallium/drivers/trace/tr_texture.h
+++ b/src/gallium/drivers/trace/tr_texture.h
@@ -67,6 +67,7 @@ trace_texture(struct trace_screen *tr_scr,
{
if(!texture)
return NULL;
+ assert(tr_scr);
assert(texture->screen == &tr_scr->base);
return (struct trace_texture *)texture;
}
@@ -78,6 +79,7 @@ trace_surface(struct trace_texture *tr_tex,
{
if(!surface)
return NULL;
+ assert(tr_tex);
assert(surface->texture == &tr_tex->base);
return (struct trace_surface *)surface;
}
@@ -89,6 +91,7 @@ trace_transfer(struct trace_texture *tr_tex,
{
if(!transfer)
return NULL;
+ assert(tr_tex);
assert(transfer->texture == &tr_tex->base);
return (struct trace_transfer *)transfer;
}