1
0

Fix GSAVE page -1

This commit is contained in:
otya128
2016-12-14 18:57:22 +09:00
parent 11b1da4450
commit 1d5ad717bf
2 changed files with 9 additions and 1 deletions

View File

@@ -577,7 +577,14 @@ class Graphic
if (w * h > array.length)
return;
auto oldPage = useGRP;
useGRP = savepage;
if (savepage == -1)
{
glBindFramebufferEXT(GL_FRAMEBUFFER, petitcom.console.GRPF.buffer);
}
else
{
useGRP = savepage;
}
scope (exit)
{
useGRP = oldPage;

View File

@@ -649,6 +649,7 @@ class PetitComputer
}
int loopcnt;
DerelictGL3.reload();
console.GRPF.createBuffer();
graphic.initGraphicPages();
//3graphic.initGLGraphicPages();
//glEnable(GL_BLEND);