16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 14:39:18 +02:00

flush after screen texture upload

This commit is contained in:
milek7
2018-10-13 00:10:11 +02:00
parent 047988219b
commit 43f439af29
2 changed files with 4 additions and 2 deletions

View File

@@ -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<GLubyte const *>( PyString_AsString( output ) ) );
glFlush();
}
Py_DECREF( outputheight );
Py_DECREF( outputwidth );