diff options
author | Brian Paul <[email protected]> | 2013-05-08 10:18:49 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-05-09 07:43:46 -0600 |
commit | e0144019c08cec64edb78c4f01d78bfbc2aa2edd (patch) | |
tree | a3f7335e0fd31cf4f3a7c657e8bc4d534149f479 /src/mesa/state_tracker/st_draw.c | |
parent | a8e46140718b85fd33be97c693050f8722db1def (diff) |
st/mesa: generate GL_OUT_OF_MEMORY if we can't create the index buffer
Before, if we failed to allocate the index buffer we'd silently
return from st_draw_vbo() without drawing anything. We should
raise GL_OUT_OF_MEMORY to give some indication that something went
wrong.
Note: This is a candidate for the stable branches.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_draw.c')
-rw-r--r-- | src/mesa/state_tracker/st_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index 437d5541b80..a0cf2ca1d8f 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@ -230,7 +230,7 @@ st_draw_vbo(struct gl_context *ctx, nr_prims); if (!setup_index_buffer(st, ib, &ibuffer)) { - /* out of memory */ + _mesa_error(ctx, GL_OUT_OF_MEMORY, "glBegin/DrawElements/DrawArray"); return; } |