diff options
author | Kenneth Graunke <[email protected]> | 2012-06-04 00:48:23 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2012-06-05 14:41:33 -0700 |
commit | 05b086ce934fa2967da736db8db429d0886735a9 (patch) | |
tree | b7093c0de68062a49ba5ad0aca5778e28a1a6746 /src/mesa/main/bufferobj.c | |
parent | cb8ed93dd0faf958493d35a4729c4a00a201af8d (diff) |
mesa: Support BindBuffer{Base,Offset,Range} with a buffer of 0.
_mesa_lookup_bufferobj returns NULL for 0, which caused us to say
"there's no such buffer object" and raise an error, rather than
correctly binding the shared NullBufferObj.
Now you can unbind your buffers.
NOTE: This is a candidate for stable release branches.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/bufferobj.c')
0 files changed, 0 insertions, 0 deletions