Fix BG rendering
This commit is contained in:
@@ -86,10 +86,10 @@ class BG
|
|||||||
glTexCoord2f(u2 / (cast(float)petitcom.graphic.width) - 1, v2 / (cast(float)petitcom.graphic.height) - 1);
|
glTexCoord2f(u2 / (cast(float)petitcom.graphic.width) - 1, v2 / (cast(float)petitcom.graphic.height) - 1);
|
||||||
glVertex3f((x * w + w), (y * h + h), 0);
|
glVertex3f((x * w + w), (y * h + h), 0);
|
||||||
rendercount++;
|
rendercount++;
|
||||||
if(rendercount >= 899)
|
/*if(rendercount >= 899)
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
glEnd();
|
glEnd();
|
||||||
|
|||||||
@@ -642,14 +642,6 @@ class PetitComputer
|
|||||||
version(test) glRotatef(rot_test_deg, rot_test_x, rot_test_y, rot_test_z);
|
version(test) glRotatef(rot_test_deg, rot_test_x, rot_test_y, rot_test_z);
|
||||||
glBindTexture(GL_TEXTURE_2D, graphic.GRP[bgpage].glTexture);
|
glBindTexture(GL_TEXTURE_2D, graphic.GRP[bgpage].glTexture);
|
||||||
|
|
||||||
if (BGvisibles[0])
|
|
||||||
{
|
|
||||||
for(int i = 0; i < bgmax; i++)
|
|
||||||
{
|
|
||||||
bg[i].render(400f, 240f);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (BGvisibles[0])
|
if (BGvisibles[0])
|
||||||
{
|
{
|
||||||
chRenderingDisplay(0);
|
chRenderingDisplay(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user