Enforce the drawbuffer overflow check in release too.

This commit is contained in:
Henrik Rydgard committed 2013-04-07 22:56:38 +02:00
1 parent 089e80d365
commit f71f3183b2
1 file changed
-2
-2
View File
@@ -122,12 +122,10 @@ void DrawBuffer::Flush(bool set_blend_state) {
}
void DrawBuffer::V(float x, float y, float z, uint32 color, float u, float v) {
#ifdef _DEBUG
if (count_ >= MAX_VERTS) {
FLOG("Overflowed the DrawBuffer");
return;
}
#endif
Vertex *vert = &verts_[count_++];
vert->x = x;