From 65edb8fe0b7629a35fe54448044ccf04878aa729 Mon Sep 17 00:00:00 2001 From: Daan van Hasselt Date: Wed, 22 Jul 2020 01:58:35 +0200 Subject: [PATCH] unbind PIXEL_UNPACK_BUFFER after binding --- src/Frame.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Frame.cpp b/src/Frame.cpp index 7262937..093f027 100644 --- a/src/Frame.cpp +++ b/src/Frame.cpp @@ -40,6 +40,7 @@ bool Frame::bufferTexture( GLuint pbo ) copy( m_texData.get(), m_texData.get() + m_texSize, buffer ); glUnmapBuffer( GL_PIXEL_UNPACK_BUFFER ); + glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0); // Unbind m_pbo = pbo; if ( m_sync ) glDeleteSync( m_sync );