moved buffer mutex

This commit is contained in:
itsmattkc
2019-02-27 11:13:29 -08:00
parent a24b90c99e
commit d3487086c7
4 changed files with 9 additions and 22 deletions
-8
View File
@@ -541,10 +541,6 @@ GLuint compose_sequence(ComposeSequenceParams &params) {
// thread safety (see docs for ComposeSequenceParams::main_buffer_mutex)
if (final_fbo == params.main_buffer) {
params.main_buffer_mutex->lock();
}
// bind front buffer as draw buffer
params.ctx->functions()->glBindFramebuffer(GL_DRAW_FRAMEBUFFER, final_fbo);
@@ -593,10 +589,6 @@ GLuint compose_sequence(ComposeSequenceParams &params) {
// unbind framebuffer
params.ctx->functions()->glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
// thread safety (see docs for ComposeSequenceParams::main_buffer_mutex)
if (final_fbo == params.main_buffer) {
params.main_buffer_mutex->unlock();
}