Add glFinish() before unmapping the surface

cherry picked from rellla
22590848da
This commit is contained in:
9000h 2019-10-26 23:03:35 +02:00 committed by GitHub
parent 5653e31466
commit 6044db40f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -616,6 +616,7 @@ void cOglFb::BindWrite(void) {
}
void cOglFb::Unbind(void) {
glFinish();
glBindFramebuffer(GL_FRAMEBUFFER, 0);
glBindTexture(GL_TEXTURE_2D, 0);
}