de-hardcode the GL renderer.

init framebuffer to black.
fix bugs.
This commit is contained in:
Arisotura
2019-05-12 16:32:53 +02:00
parent a32c5c99bb
commit 0a464c504d
6 changed files with 111 additions and 42 deletions

View File

@ -642,6 +642,7 @@ void OnAreaDraw(uiAreaHandler* handler, uiArea* area, uiAreaDrawParams* params)
}
if (!ScreenBitmap[0] || !ScreenBitmap[1]) return;
if (!GPU::Framebuffer[0][0]) return;
uiRect top = {0, 0, 256*ScreenScale, 192*ScreenScale};
uiRect bot = {0, 0, 256*ScreenScale, 192*ScreenScale};