summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2012-01-07 14:16:27 -0700
committerBrian Paul <brianp@vmware.com>2012-01-07 14:16:27 -0700
commitf0f623a9075107461438468e1aea6bca3a3234f3 (patch)
tree4db272593d79d692e1a30147f110260c840c30be /src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c
parent94bf2d48e19b86a4cfa4ff3bf3da97967f8a2793 (diff)
downloadexternal_mesa3d-f0f623a9075107461438468e1aea6bca3a3234f3.zip
external_mesa3d-f0f623a9075107461438468e1aea6bca3a3234f3.tar.gz
external_mesa3d-f0f623a9075107461438468e1aea6bca3a3234f3.tar.bz2
draw: replace assert(0) with debug_warn_once()
If the assertion was hit, it probably meant that we were unable to allocate or map a vertex buffer. Instead of dying in a debug build, issue a warning and continue.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c
index b875f64..870b23b 100644
--- a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c
+++ b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c
@@ -236,7 +236,7 @@ fse_run_linear(struct draw_pt_middle_end *middle,
return;
fail:
- assert(0);
+ debug_warn_once("allocate or map of vertex buffer failed (out of memory?)");
return;
}
@@ -293,7 +293,7 @@ fse_run(struct draw_pt_middle_end *middle,
return;
fail:
- assert(0);
+ debug_warn_once("allocate or map of vertex buffer failed (out of memory?)");
return;
}