X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fscreen.cpp;h=ecc8c203af836c0510e92529d77f15fa7c8d319f;hp=8adb195ab398e0a738728946a23f075e06de502e;hb=eff96d65bd1101083e04cb3ff2468b3feea3ff9e;hpb=bdda0103bf26d215d41093316ca0e15cd67fec1d diff --git a/src/screen.cpp b/src/screen.cpp index 8adb195..ecc8c20 100644 --- a/src/screen.cpp +++ b/src/screen.cpp @@ -255,7 +255,7 @@ void Screen::DebugFontInit(const char *name, float font_size) m_debug_font_vertices.SetUsage(GraphicsBuffer::BufferUsageStreamDraw); m_debug_font_vertices.SetType(GraphicsBuffer::BufferTypeVertex); - m_debug_font_vertices.Upload(512, nullptr); + m_debug_font_vertices.Upload(8192, nullptr); m_debug_font_vertex_head = 0; } @@ -290,7 +290,6 @@ void Screen::DebugFontFlush() glEnableClientState(GL_TEXTURE_COORD_ARRAY); glVertexPointer(2, GL_FLOAT, 4*sizeof(float), (void*)(2*sizeof(float))); glTexCoordPointer(2, GL_FLOAT, 4*sizeof(float), 0); - Debug("Flushing Debug Font arrays, %d verts (%d floats)", m_debug_font_vertex_head/4, m_debug_font_vertex_head); glDrawArrays(GL_QUADS, 0, m_debug_font_vertex_head/4); glDisableClientState(GL_VERTEX_ARRAY); glDisableClientState(GL_TEXTURE_COORD_ARRAY);