Improvement: reuse FBO for Thumbnailing

Avoid create and delete a new FBO for each thumbnail, as they are often the same size.
This commit is contained in:
Bruno Herbelin
2022-04-17 12:51:55 +02:00
parent 05eb62bb35
commit 07e2bd4bcf
2 changed files with 21 additions and 10 deletions

View File

@@ -40,6 +40,7 @@ protected:
// get a thumbnail outside of opengl context; wait for a promise to be fullfiled after draw
void drawThumbnail();
FrameBufferImage *thumbnail ();
FrameBuffer *frame_thumbnail_;
};
#endif // RENDERVIEW_H