intel: clear buffer fields in intel_bufferobj_unmap()
authorBrian Paul <brianp@vmware.com>
Mon, 31 Aug 2009 15:01:21 +0000 (09:01 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 31 Aug 2009 15:01:44 +0000 (09:01 -0600)
src/mesa/drivers/dri/intel/intel_buffer_objects.c

index 3cf0ea0991d3b12de970577dd060c1324ac5604b..6f7077e17f411fd11d93a4f727a158317bc96825 100644 (file)
@@ -418,6 +418,8 @@ intel_bufferobj_unmap(GLcontext * ctx,
       }
    }
    obj->Pointer = NULL;
+   obj->Offset = 0;
+   obj->Length = 0;
 
    return GL_TRUE;
 }