From: Brian Paul Date: Mon, 31 Aug 2009 15:01:21 +0000 (-0600) Subject: intel: clear buffer fields in intel_bufferobj_unmap() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=28c159d61461dab0963860725b77fc56566838fa;p=mesa.git intel: clear buffer fields in intel_bufferobj_unmap() --- 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; }