From: Steinar H. Gunderson Date: Sat, 12 Apr 2014 00:25:13 +0000 (+0200) Subject: Fix an issue where we could take an FBO off a freelist but not properly clean fbo_for... X-Git-Tag: 1.1.1~1 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=255a205ca10490f28eeaff69153afda578f94ff0;ds=sidebyside Fix an issue where we could take an FBO off a freelist but not properly clean fbo_formats. --- diff --git a/resource_pool.cpp b/resource_pool.cpp index db449dd..39af866 100644 --- a/resource_pool.cpp +++ b/resource_pool.cpp @@ -401,6 +401,7 @@ void ResourcePool::cleanup_unlinked_fbos(void *context) pair key(context, fbo_num); assert(fbo_formats.count(key) != 0); if (fbo_formats[key].texture_num == 0) { + fbo_formats.erase(key); glDeleteFramebuffers(1, &fbo_num); check_error(); fbo_freelist[context].erase(freelist_it++);