aboutsummaryrefslogtreecommitdiff
path: root/libdrm
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-08-04 20:00:19 +0100
committerThomas White <taw@bitwiz.org.uk>2009-10-17 12:31:13 +0200
commit31c3b1274559c6e1175f09da75b2ae5ef420543d (patch)
tree551c3fdfb2cc50a4d1eaead440144c95831a4ff8 /libdrm
parent7e3eee5d5bf0fa7654c40b13b691d402e1009b9c (diff)
Set bo_gem->virtual = NULL on unmap
Diffstat (limited to 'libdrm')
-rw-r--r--libdrm/glamo/glamo_bo_gem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdrm/glamo/glamo_bo_gem.c b/libdrm/glamo/glamo_bo_gem.c
index 7ac01f5d..b5bbc180 100644
--- a/libdrm/glamo/glamo_bo_gem.c
+++ b/libdrm/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;
}