summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_context.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2009-10-29 23:48:59 +0100
committerJoakim Sindholt <opensource@zhasha.com>2009-10-31 07:30:47 +0100
commitace78d90ded52d8fe4b3b077abf9a4db381dce16 (patch)
tree1712b31ec211e8840bec8805a51f96252fbeb48d /src/gallium/drivers/r300/r300_context.c
parent5cf7c8e2d58a877bfc786f866d4e0d363ddd22aa (diff)
r300g: fix crash in r300_is_texture_referenced
Also, a subtle fix in emitting a texture state
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.c')
-rw-r--r--src/gallium/drivers/r300/r300_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c
index e45564b54e..02f201b49a 100644
--- a/src/gallium/drivers/r300/r300_context.c
+++ b/src/gallium/drivers/r300/r300_context.c
@@ -80,7 +80,7 @@ r300_is_texture_referenced(struct pipe_context *pipe,
struct pipe_texture *texture,
unsigned face, unsigned level)
{
- struct pipe_buffer* buf;
+ struct pipe_buffer* buf = 0;
r300_get_texture_buffer(texture, &buf, NULL);