projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6be1c69
)
mesa: drop useless assert
author
Timothy Arceri
<tarceri@itsqueeze.com>
Tue, 25 Jul 2017 23:13:33 +0000
(09:13 +1000)
committer
Timothy Arceri
<tarceri@itsqueeze.com>
Wed, 26 Jul 2017 00:16:20 +0000
(10:16 +1000)
NewBufferObj() is called when the shared state is allocated so we
wouldn't get this far if it was NULL.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/mesa/main/bufferobj.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/bufferobj.c
b/src/mesa/main/bufferobj.c
index 343e6c3ca5c4210579c03fd1e189ae84b2a30ddf..cb666dcf13fabeb9a2276f2e797fad0686c83d81 100644
(file)
--- a/
src/mesa/main/bufferobj.c
+++ b/
src/mesa/main/bufferobj.c
@@
-989,7
+989,6
@@
_mesa_handle_bind_buffer_gen(struct gl_context *ctx,
/* If this is a new buffer object id, or one which was generated but
* never used before, allocate a buffer object now.
*/
- assert(ctx->Driver.NewBufferObject);
buf = ctx->Driver.NewBufferObject(ctx, buffer);
if (!buf) {
_mesa_error(ctx, GL_OUT_OF_MEMORY, "%s", caller);