From: Steinar H. Gunderson Date: Wed, 3 Feb 2016 18:59:33 +0000 (+0100) Subject: Properly reset the PBO setting in Mixer::bm_frame(), so new textures are properly... X-Git-Tag: 1.1.0~17 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=1da7b14ac122f25c59ebb9cc30fb98fb4d3ede4c;p=nageru Properly reset the PBO setting in Mixer::bm_frame(), so new textures are properly blank. --- diff --git a/mixer.cpp b/mixer.cpp index 1367f30..16a0754 100644 --- a/mixer.cpp +++ b/mixer.cpp @@ -440,6 +440,8 @@ void Mixer::bm_frame(unsigned card_index, uint16_t timecode, check_error(); glBindTexture(GL_TEXTURE_2D, 0); check_error(); + glBindBuffer(GL_PIXEL_UNPACK_BUFFER_ARB, 0); + check_error(); GLsync fence = glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, /*flags=*/0); check_error(); assert(fence != nullptr);