From cc72a4e8c3889edf0c3880f166e3417be604ec19 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 23 May 2016 17:31:07 +0200 Subject: vo_opengl: support framebuffer invalidation Not sure how much can be gained with this, as we can't use it properly yet. For now, this is used only before rendering, which probably does overwhelmingly nothing. In the future, this should be used after temporary passes, which could possibly reduce memory usage and even memory bandwidth usage, depending on the drivers. --- video/out/opengl/utils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'video/out/opengl/utils.h') diff --git a/video/out/opengl/utils.h b/video/out/opengl/utils.h index c7a72969f6..569ec0f23c 100644 --- a/video/out/opengl/utils.h +++ b/video/out/opengl/utils.h @@ -84,6 +84,7 @@ bool fbotex_change(struct fbotex *fbo, GL *gl, struct mp_log *log, int w, int h, #define FBOTEX_FUZZY_H 2 #define FBOTEX_FUZZY (FBOTEX_FUZZY_W | FBOTEX_FUZZY_H) void fbotex_set_filter(struct fbotex *fbo, GLenum gl_filter); +void fbotex_invalidate(struct fbotex *fbo); // A 3x2 matrix, with the translation part separate. struct gl_transform { -- cgit v1.2.3