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.
hw_verts = render->map_vertices( render );
if (!hw_verts) {
- assert(0);
+ debug_warn_once("map of vertex buffer failed (out of memory?)");
return;
}
return;
fail:
- assert(0);
+ debug_warn_once("allocate or map of vertex buffer failed (out of memory?)");
return;
}
hw_verts = draw->render->map_vertices( draw->render );
if (!hw_verts) {
- assert(0);
+ debug_warn_once("vertex buffer allocation failed (out of memory?)");
return;
}
return;
fail:
- assert(0);
+ debug_warn_once("allocate or map of vertex buffer failed (out of memory?)");
return;
}
return;
fail:
- assert(0);
+ debug_warn_once("allocate or map of vertex buffer failed (out of memory?)");
return;
}
return;
fail:
- assert(0);
+ debug_warn_once("allocate or map of vertex buffer failed (out of memory?)");
return;
}