TINYGL: Added linear allocator for frames draw call data.
This commit is contained in:
parent
98a77b2801
commit
a0a17717be
2 changed files with 43 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue