aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-08-04 20:00:19 +0100
committerThomas White <taw@bitwiz.org.uk>2010-05-23 09:51:33 +0200
commit09b23ff11c86cfe0d21c28fd26032d2de2357a93 (patch)
treedb4fecb7002b233ea59f92622e5f29e3b1d6184b
parent33d1987387f5a7c2e09c9811e2879b36238534c6 (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;
}