summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-04-17 17:11:09 +0100
committerKeith Whitwell <[email protected]>2009-04-20 16:12:11 +0100
commit53c6467aea129b03cf960a0854c1746ce52a2daa (patch)
treee9a22c48b0103d6e1b43a911c3221af91286e930 /src/mesa/state_tracker
parent70588fc83c5aa75754f7b090a63727f4791618ed (diff)
st: assert on pipe_buffer_create failure
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.
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_cb_bufferobjects.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c
index 1025265cb94..ea9f73ca7b8 100644
--- 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)