Make each OS window have its own framebuffer

This commit fixes graphics rendering when more than one OS window is
open, all OS windows are semi-transparent, and multiple windows contain
graphics.

This commit closes #2310.
This commit is contained in:
Fredrick Brennan
2020-01-24 16:06:57 +08:00
parent 1b5daf930a
commit 65a7b19f40
6 changed files with 13 additions and 3 deletions

View File

@@ -81,6 +81,11 @@ free_texture(GLuint *tex_id) {
*tex_id = 0;
}
void
free_framebuffer(GLuint *fb_id) {
glDeleteFramebuffers(1, fb_id);
*fb_id = 0;
}
// }}}