aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-08-31 09:01:21 -0600
committerBrian Paul <[email protected]>2009-08-31 09:01:44 -0600
commit28c159d61461dab0963860725b77fc56566838fa (patch)
tree53460b3755419111b3fe94e1025725551a767335 /src/mesa
parent92033a9516942d7272ce4bf36ecd422009bbaf60 (diff)
intel: clear buffer fields in intel_bufferobj_unmap()
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/intel/intel_buffer_objects.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_buffer_objects.c b/src/mesa/drivers/dri/intel/intel_buffer_objects.c
index 3cf0ea0991d..6f7077e17f4 100644
--- a/src/mesa/drivers/dri/intel/intel_buffer_objects.c
+++ b/src/mesa/drivers/dri/intel/intel_buffer_objects.c
@@ -418,6 +418,8 @@ intel_bufferobj_unmap(GLcontext * ctx,
}
}
obj->Pointer = NULL;
+ obj->Offset = 0;
+ obj->Length = 0;
return GL_TRUE;
}