From da4942dbcb8a0064767f50b335cea6a168c26661 Mon Sep 17 00:00:00 2001 From: otya128 Date: Wed, 21 Dec 2016 23:21:54 +0900 Subject: [PATCH] Fix graphic --- SMILEBASIC/graphic.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SMILEBASIC/graphic.d b/SMILEBASIC/graphic.d index f7c7340..3ba7c5e 100644 --- a/SMILEBASIC/graphic.d +++ b/SMILEBASIC/graphic.d @@ -774,6 +774,7 @@ class Graphic2 : Graphic { glBindTexture(GL_TEXTURE_2D, this.GRP[usePage[olddisplay]].glTexture); glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, GL_BGRA, GL_UNSIGNED_BYTE, buffer); + glFlush(); df = false; } olddisplay = display; @@ -785,6 +786,7 @@ class Graphic2 : Graphic { glBindTexture(GL_TEXTURE_2D, this.GRP[useGRP].glTexture); glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, GL_BGRA, GL_UNSIGNED_BYTE, buffer); + glFlush(); } override void updateVM() {