set buffer object default Usage and Access
This commit is contained in:
parent
de47068b85
commit
85ad44b292
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue