TINYGL: Added linear allocator for frames draw call data.

This commit is contained in:
Stefano Musumeci 2014-08-06 21:50:49 +02:00
parent 98a77b2801
commit a0a17717be
2 changed files with 43 additions and 0 deletions

View file

@ -192,6 +192,10 @@ void glInit(void *zbuffer1, int textureSize) {
c->color_mask = (1 << 24) | (1 << 16) | (1 << 8) | (1 << 0);
c->_currentAllocatorIndex = 0;
c->_drawCallAllocator[0].initialize(5 * 1024 * 1024);
c->_drawCallAllocator[1].initialize(5 * 1024 * 1024);
Graphics::Internal::tglBlitScissorRect(0, 0, c->fb->xsize, c->fb->ysize);
}