TINYGL: Added a way to disable or enable dirty rectangles at runtime.

This commit is contained in:
Stefano Musumeci 2014-08-15 23:53:57 +02:00
parent e1aea3a1f3
commit 974f47fa42
5 changed files with 67 additions and 30 deletions

View file

@ -224,6 +224,7 @@ void glInit(void *zbuffer1, int textureSize) {
c->_currentAllocatorIndex = 0;
c->_drawCallAllocator[0].initialize(kDrawCallMemory);
c->_drawCallAllocator[1].initialize(kDrawCallMemory);
c->_enableDirtyRectangles = false;
Graphics::Internal::tglBlitSetScissorRect(0, 0, c->fb->xsize, c->fb->ysize);
}