projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70588fc
)
st: assert on pipe_buffer_create failure
author
Keith Whitwell
<keithw@vmware.com>
Fri, 17 Apr 2009 16:11:09 +0000
(17:11 +0100)
committer
Keith Whitwell
<keithw@vmware.com>
Mon, 20 Apr 2009 15:12:11 +0000
(16:12 +0100)
This needs a proper fix to propogate the out-of-memory condition back
up to Mesa and the app as a GL error. Until then, at least catch the
problem at its source.
src/mesa/state_tracker/st_cb_bufferobjects.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_bufferobjects.c
b/src/mesa/state_tracker/st_cb_bufferobjects.c
index 1025265cb9402cb3904dec1e7ba6f4c847b9cbcf..ea9f73ca7b88f7ca5e5348c36898c125139787c8 100644
(file)
--- a/
src/mesa/state_tracker/st_cb_bufferobjects.c
+++ b/
src/mesa/state_tracker/st_cb_bufferobjects.c
@@
-169,6
+169,11
@@
st_bufferobj_data(GLcontext *ctx,
st_obj->buffer = pipe_buffer_create( pipe->screen, 32, buffer_usage, size );
+ /* We don't seem to have any good way of passing failure to
+ * allocate up to Mesa??
+ */
+ assert(st_obj->buffer);
+
st_obj->size = size;
if (data)