summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorThomas Hellstrom <[email protected]>2011-10-17 14:24:14 +0200
committerThomas Hellstrom <[email protected]>2011-10-18 10:37:12 +0200
commit6235846cb779bce470bc903f8cfc701bc0343d73 (patch)
tree34221c5f116eb0ec1cf8df4f0a1d5f4208ec9394 /src/gallium
parent0b3842edb1a0bc1a2163571ef476e080f7c40b0f (diff)
svga: Plug a fence leak
Signed-off-by: Thomas Hellstrom <[email protected]> Reviewed-by: Jakob Bornecrantz <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/svga/svga_context.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/svga/svga_context.c b/src/gallium/drivers/svga/svga_context.c
index 91bb60f0b6b..9f4f8a47def 100644
--- a/src/gallium/drivers/svga/svga_context.c
+++ b/src/gallium/drivers/svga/svga_context.c
@@ -239,9 +239,9 @@ void svga_context_flush( struct svga_context *svga,
}
if(pfence)
- *pfence = fence;
- else
- svgascreen->sws->fence_reference(svgascreen->sws, &fence, NULL);
+ svgascreen->sws->fence_reference(svgascreen->sws, pfence, fence);
+
+ svgascreen->sws->fence_reference(svgascreen->sws, &fence, NULL);
}