summaryrefslogtreecommitdiff
path: root/src/mesa/main/bufferobj.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-02-13 14:04:26 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-02-13 14:04:26 +0000
commit85ad44b29294c2b40e147dba17cbdd8698355ca5 (patch)
tree11c57ae4fc04731cbfced25a17b77d6a6015d47c /src/mesa/main/bufferobj.c
parentde47068b85758039826c6c29900cf0ba32329043 (diff)
set buffer object default Usage and Access
Diffstat (limited to 'src/mesa/main/bufferobj.c')
-rw-r--r--src/mesa/main/bufferobj.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index 97893b721d..8b6ede65d5 100644
--- a/src/mesa/main/bufferobj.c
+++ b/src/mesa/main/bufferobj.c
@@ -1,8 +1,8 @@
/*
* Mesa 3-D graphics library
- * Version: 5.1
+ * Version: 6.1
*
- * Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -166,6 +166,8 @@ _mesa_initialize_buffer_object( struct gl_buffer_object *obj,
_mesa_bzero(obj, sizeof(struct gl_buffer_object));
obj->RefCount = 1;
obj->Name = name;
+ obj->Usage = GL_STATIC_DRAW_ARB;
+ obj->Access = GL_READ_WRITE_ARB;
}