1
0

Fix graphic

This commit is contained in:
otya128
2016-12-21 23:21:54 +09:00
parent 5230bd29f5
commit da4942dbcb

View File

@@ -774,6 +774,7 @@ class Graphic2 : Graphic
{ {
glBindTexture(GL_TEXTURE_2D, this.GRP[usePage[olddisplay]].glTexture); glBindTexture(GL_TEXTURE_2D, this.GRP[usePage[olddisplay]].glTexture);
glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, GL_BGRA, GL_UNSIGNED_BYTE, buffer); glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, GL_BGRA, GL_UNSIGNED_BYTE, buffer);
glFlush();
df = false; df = false;
} }
olddisplay = display; olddisplay = display;
@@ -785,6 +786,7 @@ class Graphic2 : Graphic
{ {
glBindTexture(GL_TEXTURE_2D, this.GRP[useGRP].glTexture); glBindTexture(GL_TEXTURE_2D, this.GRP[useGRP].glTexture);
glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, GL_BGRA, GL_UNSIGNED_BYTE, buffer); glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, GL_BGRA, GL_UNSIGNED_BYTE, buffer);
glFlush();
} }
override void updateVM() override void updateVM()
{ {