From f71f3183b2149a59660a05b2aed8e25d2d278ceb Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 7 Apr 2013 22:56:09 +0200 Subject: [PATCH] Enforce the drawbuffer overflow check in release too. --- gfx_es2/draw_buffer.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/gfx_es2/draw_buffer.cpp b/gfx_es2/draw_buffer.cpp index 1e5a847e65..117a0c762c 100644 --- a/gfx_es2/draw_buffer.cpp +++ b/gfx_es2/draw_buffer.cpp @@ -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;