diff options
author | Marek Olšák <[email protected]> | 2020-03-21 23:56:07 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2020-04-06 10:28:53 -0400 |
commit | 10beee8a7757e956ab0e02ec8402ec1273d8edce (patch) | |
tree | c6bce7c442f7f87ed18e973b623ccd9d49cd209a /src/mesa/main/bufferobj.h | |
parent | 58fab9a6fe258395d934b69c454f1b54bcefedf1 (diff) |
mesa: remove no longer needed _mesa_is_bufferobj function
All buffers have Name != 0.
Note that there is no longer the pointer dereference to get Name,
so it's faster.
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4466>
Diffstat (limited to 'src/mesa/main/bufferobj.h')
-rw-r--r-- | src/mesa/main/bufferobj.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/mesa/main/bufferobj.h b/src/mesa/main/bufferobj.h index 44ac95f40e9..d1291677222 100644 --- a/src/mesa/main/bufferobj.h +++ b/src/mesa/main/bufferobj.h @@ -60,17 +60,6 @@ _mesa_check_disallowed_mapping(const struct gl_buffer_object *obj) GL_MAP_PERSISTENT_BIT); } -/** - * Is the given buffer object a user-created buffer object? - * Mesa uses default buffer objects in several places. Default buffers - * always have Name==0. User created buffers have Name!=0. - */ -static inline GLboolean -_mesa_is_bufferobj(const struct gl_buffer_object *obj) -{ - return obj != NULL && obj->Name != 0; -} - extern void _mesa_init_buffer_objects(struct gl_context *ctx); |