Fix BGPAGE

This commit is contained in:
otya128 committed 2016-12-14 17:58:54 +09:00
1 parent a07bf1d37c
commit 55e9329f43
1 file changed
+1 -1
+1 -1
View File
@@ -718,7 +718,7 @@ class PetitComputer
if(currentDisplay.rect.length > 1 && BGvisibles[1]) if(currentDisplay.rect.length > 1 && BGvisibles[1])
{ {
chRenderingDisplay(1); chRenderingDisplay(1);
glBindTexture(GL_TEXTURE_2D, graphic.GRP[bgpage[0]].glTexture); glBindTexture(GL_TEXTURE_2D, graphic.GRP[bgpage[1]].glTexture);
for(int i = bgmax; i < bg.length; i++) for(int i = bgmax; i < bg.length; i++)
{ {
bg[i].render(1, currentDisplay.rect[1].w, currentDisplay.rect[1].h); bg[i].render(1, currentDisplay.rect[1].w, currentDisplay.rect[1].h);