Fix GSAVE page -1

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

No files matched your search

+8 -1
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;