summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-08-04 20:00:19 +0100
committerChristoph Brill <christoph.brill@chamaeleon.de>2011-12-13 22:15:48 +0100
commit7261422ec88d955130e924cf9a227b5468b16c2c (patch)
tree30080509130b531f0d2ea4f81dd1e3f14e9eaf40
parent4b52647660f4a0e53a00dff26f67f9a03c0df2bb (diff)
Set bo_gem->virtual = NULL on unmap
-rw-r--r--glamo/glamo_bo_gem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/glamo/glamo_bo_gem.c b/glamo/glamo_bo_gem.c
index 7ac01f5d..b5bbc180 100644
--- a/glamo/glamo_bo_gem.c
+++ b/glamo/glamo_bo_gem.c
@@ -211,6 +211,7 @@ static int bo_unmap(struct glamo_bo *bo)
}
munmap(bo->virtual, bo->size);
bo->virtual = NULL;
+ bo_gem->virtual = NULL;
return 0;
}