mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
st/mesa: move out of memory check in st_draw_vbo()
Before we were only checking the st->vertex_array_out_of_memory flag
after updating array state. But if there's two consecutive glDrawArrays
calls and the first one is skipped because of OOM, the second one should
be skipped too.
Cc: 9.2 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
(cherry picked from commit d0eaf6752d)
This commit is contained in:
parent
dbeb24c39b
commit
5dc0d13e3d
1 changed files with 4 additions and 3 deletions
|
|
@ -209,9 +209,6 @@ st_draw_vbo(struct gl_context *ctx,
|
|||
if (st->dirty.st || ctx->NewDriverState) {
|
||||
st_validate_state(st);
|
||||
|
||||
if (st->vertex_array_out_of_memory)
|
||||
return;
|
||||
|
||||
#if 0
|
||||
if (MESA_VERBOSE & VERBOSE_GLSL) {
|
||||
check_uniforms(ctx);
|
||||
|
|
@ -221,6 +218,10 @@ st_draw_vbo(struct gl_context *ctx,
|
|||
#endif
|
||||
}
|
||||
|
||||
if (st->vertex_array_out_of_memory) {
|
||||
return;
|
||||
}
|
||||
|
||||
util_draw_init_info(&info);
|
||||
if (ib) {
|
||||
/* Get index bounds for user buffers. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue