From 43f439af2937afea0c3cbb37573291bee0110ed5 Mon Sep 17 00:00:00 2001 From: milek7 Date: Sat, 13 Oct 2018 00:10:11 +0200 Subject: [PATCH] flush after screen texture upload --- PyInt.cpp | 4 +++- version.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/PyInt.cpp b/PyInt.cpp index cee7c8d6..84e0505e 100644 --- a/PyInt.cpp +++ b/PyInt.cpp @@ -44,9 +44,11 @@ void render_task::run() { // build texture ::glTexImage2D( GL_TEXTURE_2D, 0, - GL_RGBA8, + GL_RGB8, PyInt_AsLong( outputwidth ), PyInt_AsLong( outputheight ), 0, GL_RGB, GL_UNSIGNED_BYTE, reinterpret_cast( PyString_AsString( output ) ) ); + + glFlush(); } Py_DECREF( outputheight ); Py_DECREF( outputwidth ); diff --git a/version.h b/version.h index e2583983..bf9d6139 100644 --- a/version.h +++ b/version.h @@ -1 +1 @@ -#define VERSION_INFO "M7 13.10.2018, based on tmj-68f82be4" +#define VERSION_INFO "M7 13.10.2018/2, based on tmj-68f82be4"