Fix GSAVE page -1
This commit is contained in:
@@ -577,7 +577,14 @@ class Graphic
|
|||||||
if (w * h > array.length)
|
if (w * h > array.length)
|
||||||
return;
|
return;
|
||||||
auto oldPage = useGRP;
|
auto oldPage = useGRP;
|
||||||
useGRP = savepage;
|
if (savepage == -1)
|
||||||
|
{
|
||||||
|
glBindFramebufferEXT(GL_FRAMEBUFFER, petitcom.console.GRPF.buffer);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
useGRP = savepage;
|
||||||
|
}
|
||||||
scope (exit)
|
scope (exit)
|
||||||
{
|
{
|
||||||
useGRP = oldPage;
|
useGRP = oldPage;
|
||||||
|
|||||||
@@ -649,6 +649,7 @@ class PetitComputer
|
|||||||
}
|
}
|
||||||
int loopcnt;
|
int loopcnt;
|
||||||
DerelictGL3.reload();
|
DerelictGL3.reload();
|
||||||
|
console.GRPF.createBuffer();
|
||||||
graphic.initGraphicPages();
|
graphic.initGraphicPages();
|
||||||
//3graphic.initGLGraphicPages();
|
//3graphic.initGLGraphicPages();
|
||||||
//glEnable(GL_BLEND);
|
//glEnable(GL_BLEND);
|
||||||
|
|||||||
Reference in New Issue
Block a user